Hi @vadim, I'm quite new for setting up servers. This is my situation:
My Photon server is hosted on machine A.
And My game is hosted on machine B.
In file PhotonServer.config, which IP and port should be placed within WebSocket section? Server IP or Client IP?
Btw, should we care IP difference between LAN and Wifi? My game usually runs online via wifi.
It would be best if you can provide a sample with specific ip and some note on it.
you can leave 0.0.0.0 there. What you really have to change is in LoadBalancing/GameServer/bin/GameServer.xml.config. Setting PublicIPAddress for game server should be set to one that is going to be used. Default is 127.0.0.1 aka localhost.
Also you have to set there MasterIPAddress to address where is your master
Thanks for your reply.
My problems above is ok now.
But now I have to face another issue relates to connection via wss.
I have followed the guide in following doc: https://doc.photonengine.com/en-us/server/v5/operations/certificate-setup
However, when go to section 6 (step 5 - testing ERR_CERT) : it met issue cross-origin
I apply self-signed certificate and; my client and server are different machines.
look at this text: https://feedthecuriosity.com/web-development/what-is-the-strict-origin-when-cross-origin-referrer-policy/.
As far as I can see this is new default that is used by chrome and other browsers. So, Currently I do not see what is the issue
analyze performance and traffic on our website.
By clicking on the „Accept All“ button you consent to the use of non-functional cookies and the subsequent
processing of personal data to optimize our website and services as described in more detail in our
By clicking on the „Customize or Deny all“ button you can decide otherwise.
Clicking on the „Customize“ button will take you to a page where you can configure the usage of non-functional
cookies (and related technologies) or deny all of them. You can access these settings at any time and also
subsequently deselect cookies at any time in the footer area of our website.
We use the following categories of cookies and related technologies to enhance your experience,
show you personalized content, and analyze performance and traffic on our website.
We respect your right to privacy and accordingly you can chose to not allow some types of cookies (and related technologies).
Click on the different category sliders and change our default settings to manage your cookie settings.
For more information on the specific cookies/related technologies we use and on how we use these,
Authentication cookies we use are required to run our services … Cookies are required:
These cookies collect anonymous data and allow us to optimize our
website and user experience. These cookies are listed here:
Help us to understand how visitors interact with our services, enables us
to analyze and improve our services (also through third party analytics).