Help setting up multiple Factorio server on same computer

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
kevin28115
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Aug 14, 2017 11:39 pm
Contact:

Help setting up multiple Factorio server on same computer

Post by kevin28115 »

So to start off I'm using Windows to host factorio. I have never used Linux and right now do not have to time to re-set up my server for linux (plus I'm lazy so that doesn't help). That being said if this is able to be done on linux please link me and I'll read it and pray I can make a breakthrough.

I can launch one instance of terraria via the following batch.
start /high /wait factorio.exe --start-server Railworld.zip --server-settings "serversetting.json"


However, if I launch a 2nd one I am unable to do so. I scanned the cmd script and found the following
https://imgur.com/a/fEDIP

It seems that it is trying to open the same udp socket and that is the problem. Is there a fix for this or is the issue elsewhere?

Thanks in advance.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by impetus maximus »

change the port on one of the instances to something other than 34197, like 34198.
[edit]i think you will need a server config file for each instance. can someone confirm this?

kevin28115
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Aug 14, 2017 11:39 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by kevin28115 »

impetus maximus wrote:change the port on one of the instances to something other than 34197, like 34198.
[edit]i think you will need a server config file for each instance. can someone confirm this?
That's the first thing I did and did not help. It was in the config.ini

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by impetus maximus »

do you have two Factorio folders or one? how many config files?

kevin28115
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Aug 14, 2017 11:39 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by kevin28115 »

impetus maximus wrote:do you have two Factorio folders or one? how many config files?
2 folders with 2 config files.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by impetus maximus »

in widows i use a bat file to launch the server. inside the bat file i have it pointing to the config file.
i'm guessing you may have to do the same.

have you confirmed the port number is different in each and your setting stuck?

sorry i can't be more help. i've never ran a server on linux.

kevin28115
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Aug 14, 2017 11:39 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by kevin28115 »

solved :D I'm an idiot and didn't delete the ; for setting to get into effect. D:

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Help setting up multiple Factorio server on same computer

Post by impetus maximus »

we've all done things like that. glad you got it sorted. :)

Post Reply

Return to “Technical Help”