[Closed] Some details on running multiple instances of a dedicated server on a single machine.
The default port for a dedicated server is :7777. If multiple instances of the dedicated server are run, will all of their ports be :7777 by default?
If they are all on the same port, does this interfere with running multiple unique instances?
Assuming there is interference- If neither of the dedicated servers are on the same port by default, how is it determined which port they will be on?
Assuming, I need to change the ports my self, do I have to change the .ini after the server is built or is there another way to automate new instances of the dedicated server through the ue tool.
asked Oct 03 '14 at 03:41 PM in Packaging & Deployment
The question has been closed Jun 02 '15 at 05:47 PM by shgs_sls for the following reason:
The question is answered, right answer was accepted
They appear to automatically determine that the default is unavailable and increment their port numbers until they find availability. If you build a dedicated server locally and then run it a couple of times, you'll see server instances running on :7777, :7778, :7779, etc.
I'll test this on a remote linux VM tonight and report back.
answered Oct 03 '14 at 08:59 PM
The server will try its default port (7777) and up to MaxPortCountToTry (512) ports above it. If none of those ports could be bound to, it will refuse to start.
Bot values are set in BaseEngine.ini (MaxPortCountToTry in [/Script/OnlineSubsystemUtils.IpNetDriver] section) and can be overriden in your game's DefaultEngine.ini
answered Oct 15 '14 at 01:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here