Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

UNET networking : I can't connect with IP

$
0
0
Hello.
I have two buttons : create game , and join game. My code is :
Code (CSharp):
  1.  
  2. public void StartupHost() {
  3.   SetPort ();
  4.   NetworkManager.singleton.StartHost ();
  5.   }
  6.  
  7.   public void JoinGame()  {
  8.  
  9.   SetIPAddress ();
  10.   SetPort ();
  11.  
  12.   NetworkManager.singleton.StartClient ();
  13.   }
  14.  
  15.   void SetIPAddress (){
  16.   NetworkManager.singleton.networkAddress = "192.168.0.4";
  17.   }
  18.  
  19.   void SetPort() {
  20.  
  21.   NetworkManager.singleton.networkPort = 7777;
  22.  }
It work ONCE between my computer and my...

UNET networking : I can't connect with IP

Viewing all articles
Browse latest Browse all 16796

Trending Articles