- Home /
Question by
agentperrys · Dec 27, 2014 at 02:29 AM ·
iosmobilenetwork
IOS Networking
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);
}
Comment
Your answer
Follow this Question
Related Questions
Network strategies for smartphone games 2 Answers
Can you use Unity to make multiplayer IOS/Android games? 1 Answer
How to active mobile keyboard ? 1 Answer
Mobile device screen sizes 4 Answers