how to stop others people using my photon server?

Options
i installed photon sever in my server, i only need set ip:9090 in my game client, but It's really not safe, if any one know my server ip,they also can use my server for his game client,so how to stop others people using my server?

Comments

  • chvetsov
    Options
    hi, @wertt22

    in the world of managed code this is very difficult to achive. any protection you create can be seen. so everyone may connect to your server. next step is authentication. if user does not send anything in lets say 1 minute after connect. it might be disconnected by server.
    if he sends auth request and this request passes your checks, then you allow this client to play

    best,
    ilya
  • wertt22
    wertt22
    edited June 2017
    Options
    @chvetsov , can i use photon server plugin sdk to authentication?
    for example when client on connect or onjion make logic code to check client 。 3q very much
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @wertt22,

    Thank you for choosing Photon!

    Please take a look at the Custom Authentication doc.
  • wertt22
    Options
    @JohnTube thank you, that doc is really helpful to me, i have a question, if i use my owner php site to check ,i know when ResultCode = 1 stand for Authentication successful. so if i want Authentication client successful. i just need Authentication parameters,then use php code like this
    echo 1;
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited June 2017
    Options
    @wertt22 you can find how to do custom auth in php here or here.
  • wertt22
    Options
    @JohnTube connect to server is before setCustomAuthentication ?
    else after setCustomAuthentication?