Game connects in the Unity editor, but gets stuck at PeerCreated in a build. How can I fix this?

Options
I'm making a simple multiplayer shooter in Unity 5.4, with the latest Photon version. I have the game automatically connecting when it starts, and everything works perfectly in the Unity Editor; however, when I build the game and run it, Photon gets stuck with the message "PeerCreated" logged. In the output file, it notes that host "ns.exitgames.com" doesn't exist.
Why is it doing this, and how do I fix it?

Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Foreignwaffles,

    Thank you for choosing Photon!

    In the output file, it notes that host "ns.exitgames.com" doesn't exist.

    Please make sure that the client build can connect to Photon nameserver. You can find the ports to open here.
  • Foreignwaffles
    edited March 2017
    Options
    @JohnTube Thank you for answering, but I'm new to Photon. How would I go about doing this? I'm Using PUN by the way, not Realtime.