Can I run Photon Server on other Internet server?

Modemi4
Modemi4
edited October 2020 in JavaScript and TypeScript
I use Photon in my Construct 2 project and want to host it on the server of my site. How do I do that? Must the server be on Windows base only or Linux will work as well?

Thanks

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Modemi4,

    Thank you for choosing Photon!

    You can self-host Photon Server.
    See doc for version 5 here.
    It's Windows only.

    Then modify your JavaScript client to connect to this server instead of Photon Cloud.
  • @JohnTube thanks for responce!
    Here comes another question: it seems that I need to use GUI to start the server. Does that mean that I can't start it just programaticly? Because I would like to use a shared server instead of VPS and that causes no access to the GUI to do the step 5
    So I need a Windows VPS only, right?
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited October 2020
    Hi @Modemi4,

    By GUI I guess you mean PhotonControl tool?
    You can skip that it's optional, it's only meant for convenience and contains shortcuts to things you need when hosting and running Photon Server.

    PhotonControl does run some batch script which contains actual commands to start and stop PhotonSocketServer with proper configuration.
    You can find those files under the same deploy folder as PhotonControl.
    Read here about PhotonSocketServer commands.

    Otherwise, yes Photon Server is Windows only.
    Read here about hosting requirements.