Deploying the game
RPhoton
✭
hi,
I have developed a prototype game using Unity and Pun2. The targeted output is WebGl format.
I have successfully tested using localhost:portnumber that Unity generates dynamically.
In the Photon Server Settings I selected:
1. "Protocol" as "Web Socket".
2. "Use Name Server" is checked on.
3. "Port" is "0"
I am planning to use Photon Server for the game.
How do I test it online so that I can test it over the internet with different online users?
Where should I host / deploy the game package?
Thanks for the help.
Regards
r
I have developed a prototype game using Unity and Pun2. The targeted output is WebGl format.
I have successfully tested using localhost:portnumber that Unity generates dynamically.
In the Photon Server Settings I selected:
1. "Protocol" as "Web Socket".
2. "Use Name Server" is checked on.
3. "Port" is "0"
I am planning to use Photon Server for the game.
How do I test it online so that I can test it over the internet with different online users?
Where should I host / deploy the game package?
Thanks for the help.
Regards
r
0
Comments
-
Hi @RPhoton,
Thank you for choosing Photon!
This question is not really about Photon but rather about how or where to host WebGL Unity games.
Here are some answers from a Google search:
Unity answers
reddit0 -
Thanks for the response. I have deployed the game on my server. However when I hit the URL, the game doesn't loads. Do I need to setup the photon server on my server for the game to work?0
-
Hi @RPhoton,Do I need to setup the photon server on my server for the game to work?
See list of ports.0 -
I shared the settings earlier. Here it is again. Is this not enough for the game to connect to the photon server?
1. "Protocol" as "Web Socket".
2. "Use Name Server" is checked on.
3. "Port" is "0"0 -
The documentation says with this settings Photon picks up the server and identifies the port to connect automatically. If not please let me know I am using websockets.0
-
Hi @RPhoton,
Sorry for the confusion.
Please ignore my previous comment.I need to understand what you want exactly:
You want to be able to play a WebGL game from a browser.
So this game needs to be hosted on some web server for the browser to load it.On the other hand, this game, do you want it to connect to Photon Cloud or to your self-hosted Photon Server?
- "Protocol" as "Web Socket".
- "Use Name Server" is checked on.
- "Port" is "0"
This is fine if you want to connect to Photon Cloud.
I think you need to use WebSocketSecure and not WebSocket but I'm not sure.If you want to connect to a self-hosted on premises server then you need to change settings accordingly and configure certificate also.
In any case, check logs for errors, see browser console: in chrome it's F12.
0