最新版本2.29,无网的局域网下,无法连接自己搭建的本地服务器

Options
最新版本2.29,无网的局域网下,无法连接自己搭建的本地服务器.
The latest version 2.29, no network under the local area network, can not connect to their own local server

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2021
    Options
    Hi @18081407552,

    Thank you for choosing Photon!

    Please use English only.

    I think this is due to the serialization protocol.
    here is an excerpt from 2.29's Changelog:
    Removed: Setting of protocol 1.6 when connecting directly to a Master Server. This was a workaround for older Photon Server SDKs.
    Note: If you host Photon yourself, you can set the LoadBalancingClient.SerializationProtocol to SerializationProtocol.GpBinaryV16, before you connect.

    So before connecting to your self-hosted Photon Server, set
    PhotonNetwork.NetworkingClient.SerializationProtocol  = SerializationProtocol.GpBinaryV16;
    

    Another solution is to use Photon Server SDK v5.
This discussion has been closed.