Host and other about Photon Server

Options
(Sorry for my bad english!)

Hi everybody, i have some question about "Photon server" for my Android Game
I don't understand how it's work after read all the documentation ..

I want to use Photon server for a MMORPG but i don't know how begin with photon server .. :/
I have to Host it on a rent server ? I don't want to use my computer to host it, i want my server "safe" away my connection ^^'
I download the server v4.0.29.11263.exe from photon and after ? .. I'm lost ^^"

It's not about scripts conenction , just how to set up my server ^^


Have a good day !
Quentin

Comments

  • redskry
    redskry
    edited March 2017
    Options
    Thx for youre reply !! I sucess to set up my loadbalance on azur with IPV6 ect...

    EDIT: Just one question, i have to forward my port ? even if i have IPV6?
    I follow the instruction to set up IPV6 on photon Config ect...
    Is it normal to don't write anywhere my IPV6 adress ? I just have to put it in inspector of unity config ?

    If someone want to know how to set up it : https://docs.microsoft.com/fr-fr/azure/load-balancer/load-balancer-ipv6-overview

    without that it's impossible to know how to do that :/
  • ChristianB
    Options
    Hello,

    did you follow our instructions on this doc page? https://doc.photonengine.com/en/onpremise/current/operations/ipv6

    I'm not sure if I get you right where exactly you want to forward ports. Can you point me to a doc?

    Let us know what issues exactly you experience. You can also send us your config- and log files to developer@photonengine.com, so we can review them.
  • redskry
    redskry
    edited March 2017
    Options
    Hello! Yes i follow all the step of the doc
    I use Azur machine , set up With IPV6,
    -So I install NET + photon server V4 on the VM
    -I edit "Photon.LoadBalancing.dll.config" and add copy/past the setting the right place
    -Add IPAddressIPv6="::" to each xListener in "PhotonServer.config" , I did it!
    - set PublicIPAddressIPv6 to "::1" , did it too!

    -then, i start the server in my VM
    - I launch Unity , eddit the server config in the inspector to set "Self Host", port 5055, and add my IPV6.

    I create a empty Object and add a script:


    and when i start unity i have :

    Failed parsing address: XXXX:XXX:XXXX:XXXX::XXXX:XXXX:5055
    UnityEngine.Debug:LogError(Object)
    NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1495)
    ExitGames.Client.Photon.IPhotonSocket:Connect()
    ExitGames.Client.Photon.SocketUdp:Connect()


    Sorry again for my bad english :/
    Within talk about unity inspector, i don't have to enter my IPV6 Somewhere ?
    And thanks to helping me ! i really appreciate!



  • JohnTube
    JohnTube ✭✭✭✭✭
    edited March 2017
    Options
    Hi @redskry,

    What is the server address you use in PhotonServerSettings? Did you enter the port 5055 as well?
    IPv6 addresses supported by Photon need a specific format for the port.
    Try removing the port from the address field.
  • redskry
    Options
    What server adress ? I use IPV6 public with this format : XXXX:XXX:XXXX:XXXX::XXXX:XXXX
    I use 5055 Port ^^

    Removing the port ?

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    try the following:

    XXXX:XXX:XXXX:XXXX::XXXX:XXXX::[5055]
  • redskry
    Options
    I did it previsoulsy :/
    "Failed parsing address: XXXX:XXX:XXXX:XXXX::XXXX:XXXX:5055"
  • redskry
    Options
    And in Ipconfig server, i setup "Public automatcly"
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Did you make sure to use double colons (::) and brackets around the port number ([])?
    Address should end in ::[5055].
  • redskry
    Options
    I put it in the same place that the IP ?
    Or I Just add double colon after IPV6 and the bracket in the "port" section ? ^^'
  • redskry
    redskry
    edited March 2017
    Options
    So! i sucess to use Photon server but juste with Public IP static
    Unity say "Joined Lobby" so i suppose that is a good news for me !

    But ... i have a error message in unity that say :
    Operation failed: OperationResponse 229: ReturnCode: -2 (Unknown operation code). Parameters: {} Server: MasterServer

    >> EDIT ; no error message, i change the port because i have try a lot of things and i forget to put 5055 again

    Thx for you're help!