(solved) Working on Realtime, But giving error with Self hosted Server

sulokutty
sulokutty
edited October 2020 in Photon Server
Hi !

Learning Photon. I have 3 Buttons

#1 - Will connect, then Join Random Room. If there is no room, it will create new.

#2 - named Create . Once clicked, It will create room called "asdf1234"

#3- named Join . Once clicked it will join room "asdf1234"

This setup is working perfectly with Realtime App id. But, when I switched to selfhosted server mode, it is not working.
It is connecting to Master server. Creating room. But, it is not joining random room or even not Joining room "asdf1234". Instead of joined room, it giving Room Joined failed and create new one

Pls help

Comments

  • I checked logs. It said UserId not set. I don't know C#. I use Playmaker.
    Found this post. It helped me. i set check user id on join to false. it worked. Mine is just simple WebGL game without any userback end.
    https://forum.photonengine.com/discussion/comment/38734/#Comment_38734
  • hi, @sulokutty

    it is not recommended to NOT use userId. you have to use it. just generate some random if you do not have anything special. if you start to use Photon 5 beta, it has nameserver inside that will generate userId for you automatically.

    Usage of userId is important part of protection for your app.

    best,
    ilya
  • sulokutty
    sulokutty
    edited October 2020
    Hi !
    Thanks @chvetsov

    I installed Photon 5 beta and it generated user id :smile: