- Home /
Stuck on ConnectingToNameServer
I am trying to get my game to work with photon network. However, whenever I try to connect, it gets stuck on "ConnectingToNameServer". I have tried to mess around with settings and that didn't change anything. Any help??
Code:
public void PlayPressed()
{
//Function for play being pressed
//Put some code here that brings us along into the game
Debug.Log("Playing...");
mainCanvas.enabled = false;
connectingCanvas.enabled = true;
Connect();
}
void Connect()
{
Debug.Log("Connecting");
PhotonNetwork.ConnectUsingSettings(version); //bring us to the lobby
connectionText.text = PhotonNetwork.connectionStateDetailed.ToString();
}
$$anonymous$$aybe your mess around with settings messed up something, it's suppose to be a quite straight foward process.
Check: Window -> Photon Unity Network -> Hightlight Server Settings
Hosting should be: Photon Cloud (if you are using Photon cloud of course) See if your app ID is correct.
If it is not, use the PUN Wizzard at Window -> Photon Unity Network -> PUN Wizzard -> and click setup Project.
Your answer
Follow this Question
Related Questions
Photon Networking - Synchronization problem 1 Answer
Photon Networking Child Inconsistencies 0 Answers
Unity3D Photon movement synchronization 0 Answers
Unity networking custom properties 0 Answers
Photon PunRPC problem 0 Answers