Is it possible to run PhotonServer without PhotonControl
Options
Manab
✭
A have battle server on Unity and some other server nodes (Master server, Chat server and others), that runs using my own network framework. I try to add Photon UDP as transport to my network framework (it will be used on battle server only). But when I added realization of ApplicationBase class, I understood that I dont know how to run it without PhotonControl (I need it because battle server runs on Unity3D as executable). So, is it possible?
0
Comments
-
Or may be Photon has some other classes, that can accept client connections via Photon reliable UDP?0
-
Hello
There are several options.
1. you can install Photon as a windows service:PhotonSocketServer.exe /install Default
... then control it in whatever way you would do with any Windows service.
2. you can start Photon as a process programmatically:start PhotonSocketServer.exe /debug Default
(use "Loadbalancing" instead of "Default" if you are using code that is based on the Loadbalancing instance.)
Check out the *.cmd files in /bin_Win64 for examples!
1 -
I tried modifying the _service.install.cmd like this:Nicole said:Hello
There are several options.
1. you can install Photon as a windows service:PhotonSocketServer.exe /install Default
... then control it in whatever way you would do with any Windows service.
2. you can start Photon as a process programmatically:start PhotonSocketServer.exe /debug Default
(use "Loadbalancing" instead of "Default" if you are using code that is based on the Loadbalancing instance.)
Check out the *.cmd files in /bin_Win64 for examples!
@echo off
REM change dir to location of script
SET mypath=%~dp0
CD %mypath%
PhotonSocketServer.exe /install Default
and after running this script as an admin, I get the following error when I try to start the installed service (Photon Socket Server: Default) from the Windows Services application:
The Photon Socket Server: Default service terminated with the following service-specific error:
The system cannot open the device or file specified.
0 -
probably you need to specify path to config.
does it start correctly if you use PhotonControl.exe?0 -
Hi @ssliwinski,
You can also start Photon Server process directly without the need to install service.
Please check out this comment.0