I'm making a game on IOS that involves networking and everything works on the computer but when i run it on the iphone it can start a server but wont connect to an existing server.
Code:
var IP : String = "127.0.0.1";
var Port : int = 25001;
function StartServer () {
Debug.Log("Starting Server...");
Network.InitializeServer(MaxConnections,Port,false);
}
function ConnectToServer () {
Debug.Log("Connecting To Server...");
Network.Connect(IP,Port);
}
↧