- Home /
Network Programming in Unity
I am new in Unity Network programming..Basically I want to make connection between two android devices through wifi using client server model. I have some question.
How can we make a server having specific IP How can we make a client who will connect to that server. How can we transfer messages between these two client and server
Any idea,Any help
Answer by uberokeer · Mar 13, 2013 at 07:51 AM
If You are new to network programming then I would suggest learning about the
Unity Master Server,
Resources:
Answer by Malik Ehtasham · Mar 13, 2013 at 09:46 AM
 function OnGUI()
 {
   if(GUILayout.Button(" Initlized server"))
   {
    Network.InitializeServer(32,25001,false);
    Debug.Log("Server has been Initlized");
   }
   if(GUILayout.Button("connect to server"))
   {
     Network.Connect("127.0.0.1",25001);
   }
 }
 function OnConnectedToServer() {
     Debug.Log("Connected to server");
     // Send local player name to server ...
 }
I have write this simple code but OnConnectedToServer doesnot give me any responce...
Your answer
 
 
             Follow this Question
Related Questions
How to localization app name on android platform 1 Answer
How to Display high score using GUIText 0 Answers
How to access a PHP script on XAMPP with the use of Android device? 0 Answers
Share Button 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                