I'm trying to connet photon cloud using PEER class (not LoadBalancingClient)

Hi
I want to try how much can connect to Photon Cloud Enterprise (this is private photon cloud right?)
I'm trying to use STARDUST client to how we determine what CCU is fine.

As youwe know you can connect to photon cloud to master
loadBalancingClient.ConnectToRegionMaster("us");

Unfortunately, STARDUST is not using LoadBalancingClient but using PEER class.

so how can I connect to photon cloud using PEER.
(or photon sdk C# not PUN)

Thank you


Comments

  • hi, @chooser

    it is not so difficult but requires manual work.

    first you should call connect and pass nameserver address. something like "ns.exitgames.com". then you should authenticate yourself on name server and get address of nameserver in response and token.

    then you should disconnect and reconnect to master. authenticate your self on master using token.

    and so on

    best,
    ilya
  • Thank you so much.
    I got masterserver address.
    However, I could not authenticate with the token obtained at that time.
    anyway, I will continue trying.

    Thanks
    masa
  • JohnTubeJohnTube mod
    edited May 18
    Hi @chooser,

    Thank you for choosing Photon!

    First, you should know that we recommend building server-to-server performance or stress tests as shown on this documentation page.
    If that's not what you are after then why don't you use our client SDKs or modify them if needs be?

    If you still want to make your own .Net client from scratch with our .Net library as dependency only you could follow these documentation pages:

    - .Net Platform SDK
    - Encryption

    Of course, you can always find inspiration in our "Realtime client SDK" (a.k.a. "LoadBalancing API"). It's open source.
Sign In or Register to comment.