How to make one desktop as a Photon Unity server
Options
How to make my own photon unity networking server in the localhost, not in the cloud specified there.
I have tried to use "Self Hosted" Hosting and tried the localhost and the device's IP address but every time I am getting the following error
Receive issue. State: Connected. Server: 'localhost' ErrorCode: 10054 SocketErrorCode: ConnectionReset Message: An existing connection was forcibly closed by the remote host. System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.
I have also tried to change the port number its using and also verified whether the port is being used or not by some other process or not.
Still, I can't make the photon server in the localhost. Can anyone please tell me how to make it in localhost?
I have tried to use "Self Hosted" Hosting and tried the localhost and the device's IP address but every time I am getting the following error
Receive issue. State: Connected. Server: 'localhost' ErrorCode: 10054 SocketErrorCode: ConnectionReset Message: An existing connection was forcibly closed by the remote host. System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.
I have also tried to change the port number its using and also verified whether the port is being used or not by some other process or not.
Still, I can't make the photon server in the localhost. Can anyone please tell me how to make it in localhost?
0
Comments
-
Hi @MSDsibu,
simple answer: you can't. PUN is only client-side.
To host the server on your own computer, you need the Photon Server. When running the server, the PUN client can connect to the localhost by using the correct port.0