DotNet demo connect Selfhost failed

Hi ,please look at this trouble.
dotnet demo cannt connect selfhost
I just fixed the MasterServer Address, this.MasterServerAddress = "XX.XX.XX.XXX:5055";


  • JohnTube
    JohnTube ✭✭✭✭✭
    edited November 2019
    Hi @coco,

    What .NET SDK version are you using?
    What demo are you referring to? what class?

    What error do you see?
  • Hi @JohnTube ,
    I use .net version is v4.1.2.14.
    demo loadbalancing
    my selfhost server version is
    The class is DemoClient ,
    I debug the host server code,the client nerver connected to server.the StatusCode is "DisconnectByServerReasonUnknown"
    I just change the this.MasterServerAddress to my server address
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @coco,

    I see.
    This is probably an issue with the serialization protocol.
    before connecting do this:
    loadBalancingClient.LoadBalancingPeer.SerializationProtocolType = SerializationProtocol.GpBinaryV16;
    this.LoadBalancingPeer.SerializationProtocolType = SerializationProtocol.GpBinaryV16;
    Read more here.
  • @JohnTube ,thanks a lot