Hello,
I'm in the process of setting up a custom game server, using Unity's HLAPI.
My current problem is that, once the server instance is started, trying to bind UNet on the provided IP address and port yields an error saying that this socket is already in use.
Socket: bind failed, error: Only one usage of each socket address (protocol/network address/port) is normally permitted. Cannot open socket on ip {34.228.36.47} and port {9000}; check please your network, most probably port has been already occupied
Here is how I set up the server in Unity, inside my custom network manager class, which derives from
NetworkManager:
networkPort = m_hostPort; // retrieved from "-server_host_port=" serverBindAddress = m_hostDomain; // retrieved from "-server_host_domain=" serverBindToIP = true; StartServer();
Right after this call, the socket error appears.
I haven't found any other call to StartServer that is reachable from my server code.
Have I missed something obvious but essential?
My game title is A70F
We're still on the Free plan, and I'm already through 7/20 server hours, so I have to stop trial and errors on my side for a moment until I have more answers.
I'm ok if PlayFab stats need to consume some server time to assist in the issue.
Thanks in advance!