Can't change the port to run 2 headless servers at once.
-
- Burner Inserter
- Posts: 12
- Joined: Fri Mar 18, 2016 12:49 pm
- Contact:
Can't change the port to run 2 headless servers at once.
I'm trying to run 2 headless servers at the same time, in different directories, 0.16.51 and 0.17.1. For the 0.17.1 setup, I've changed the port= value in config.ini to 34199, however the log shows it opening the default socket 34197 and then erroring. How do I fix this?
- Attachments
-
- factorio-previous.log
- (2.53 KiB) Downloaded 74 times
-
- Inserter
- Posts: 39
- Joined: Sat Aug 27, 2016 1:39 pm
- Contact:
Re: Can't change the port to run 2 headless servers at once.
Try and explicitly include the config.ini path in the command you execute to start the server (the -c option). To test if it is being executed correctly, flick the check update flag so that you can see a change in the output to ensure it's being read correctly.
-
- Burner Inserter
- Posts: 12
- Joined: Fri Mar 18, 2016 12:49 pm
- Contact:
Re: Can't change the port to run 2 headless servers at once.
Okay, I found the problem, works perfectly now. I did add the config.ini path to the start command, however, nothing changed. When I went back to the ini file, I finally read this: ; Semicolons (;) at the beginning of the line indicate a comment. Comment lines are ignored. Seems I had port= commented out. :Facepalm:
-
- Inserter
- Posts: 39
- Joined: Sat Aug 27, 2016 1:39 pm
- Contact:
Re: Can't change the port to run 2 headless servers at once.
Ahhhhhh yes, of course! Well spotted, grats