Unable to connect more than one client in PhotonSDK Server.

Hello all,
I am trying to connect more than one client in my own Photon Server. I ran the PUN Basics (scene name is PunBasics-Launcher) unity demo which works well in PhotonCloud but not in my server. And I am not getting any errors either. Please guide me on how to resolve this.

Answers

  • There is a ScriptableObject which is called PhtotonServerSettings or something, you have to change some thinks to connect to your local Server.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @kumardev,

    Thank you for choosing Photon!

    You need to set a UserId from the client before connecting.
    Example:
    PhotonNetwork.UserId = Guid.NewGuid().ToString();
    PhotonNetwork.ConnectUsingSettings(
    [...]