About photon local server setting

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Photon Server.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

About photon local server setting

tatiana
2021-12-16 09:13:42

Hello. Everyone .. current I am working unity photon project for UFE engine..

I am testing (Unity Fighting Enging) project using photon

PUN 2 - FREE | Network | Unity Asset Store
Get the PUN 2 - FREE package from Exit Games and speed up your game development process. Find this & other Network options on the Unity Asset Store.

I've installed this package to my project.

and I've download this photon server

Screenshot
Captured with Lightshot

and execute that with my ip 192.168.104.83

and in unity editor I've set photonsettings as like this

Screenshot
Captured with Lightshot

but project don't access to my local server.

how can I use this photon local server on my pc so that I can test that game for multimode?

Comments

chvetsov
2021-12-16 11:50:43

hi, @tatiana

some of your screen shots does not work. However I can assume that you may have two issues:

  • Nameserver.json has localhost as master server address. it should be updated

  • in GameServer.xml.config should be updated two settings PublicIpAddress and if you are using ws/wss PublicHostName.

  • Also if GS and MS are on different machines you have to set master server address in GameServer.xml.config

best

ilya

tatiana
2021-12-16 12:07:30

Hello. ilya.. thank you for your reply.

and sorry for my miss items for webGL.

Current I am testing webGL build.. on my think, this photon sdk don't provide webGL building on local.

anyway let me try your suggestion.. :)

JohnTube
2021-12-20 01:15:26

Hi @tatiana,

Thank you for choosing Photon!

You are using Photon Server v4, we recommend using Photon Server v5.

WebGL requires WebSocketSecure connections from client.

So you need to setup WSS listeners and especially secure TLS/SSL certificate (self-signed locally for development). Here is how to do it in v4 and how to do it in v5.

For PUN2, here is how to connect to v4 and how to connect in v5.

Back to top