- Home /
Question by
jimmycrazyskills · Jan 01, 2015 at 03:08 PM ·
networkserverconnectmaster
Network.Connect() won't connect?
I have used Network.Connect before fine using (an ip , and a port) but im using an overload which just takes hostData now. Whenever I attempt to join a server I get disconnected from the masterserver and I'm not considered to be a client on the server i want to connect to, below is the code im using in the OnGUI() function.
for (var i : int = 0; i < hostData.Length; i++){
if (GUI.Button(Rect(10,(100*i),200,300),"Click")){
print(hostData[i].ip[0].ToString());
Network.Connect(hostData[i]);
}
}
Am I connecting wrong when using a master server? or is there a better way of doing it? Thanks.
Comment
Your answer
Follow this Question
Related Questions
Unity master server down? 0 Answers
Unity Master Server Connect to own Server won't work 0 Answers
Saving Network.Instantiates on server / Assigning Networkview owner? 1 Answer
connect with Server(Host) 0 Answers
Network.Connect failed. 1 Answer