server connect authentication
Options
ali
✭
Hi
How can prevent everyone to connect to our self hosted photon server? Is it possible to define something like cloud AppId for self hosted server?
How can prevent everyone to connect to our self hosted photon server? Is it possible to define something like cloud AppId for self hosted server?
0
Comments
-
even appId will not prevent other from connecting to your server.
what really will - authentication. add check that every connected peer sends auth request to you. if it do not after some time kick it0 -
Hi @ali,
I will just add to my colleague @chvetsov's answer.
You can do this in 2 ways:- Modify Photon Server source code.
- Recommended IMO: Make use of Custom Authentication feature of v4.
0 - Modify Photon Server source code.