Page 1 of 1

0.14.21 Server problem

Posted: Sat Dec 03, 2016 2:21 am
by _RedTech
I'm having trouble running my headless server after updating to 0.14.21. I can connect via localhost, but not with my IP. I thought it was my router, but when I downgraded back to .20 it worked fine. I have also tried using a different map, still broken. I don't know what to do.

Re: 0.14.21 Server problem

Posted: Sat Dec 03, 2016 10:30 am
by daniel34
_RedTech wrote:I don't know what to do.
You should post your log file, if possible from both server and client.
_RedTech wrote:I can connect via localhost, but not with my IP.
What is your setup and why are you able to connect via localhost? If you're running the server on the same PC the client runs on then make sure they are using different ports.

Re: 0.14.21 Server problem

Posted: Sat Dec 03, 2016 3:15 pm
by _RedTech
daniel34 wrote:
_RedTech wrote:I don't know what to do.
You should post your log file, if possible from both server and client.
_RedTech wrote:I can connect via localhost, but not with my IP.
What is your setup and why are you able to connect via localhost? If you're running the server on the same PC the client runs on then make sure they are using different ports.
I attached the server and client log. On the client it first shows me connecting with my IP, doesn't work. Then I try to connect with localhost, and it does. Also, I did try to change the IP.

Re: 0.14.21 Server problem

Posted: Sat Dec 03, 2016 4:15 pm
by daniel34
_RedTech wrote:On the client it first shows me connecting with my IP, doesn't work. Then I try to connect with localhost, and it does. Also, I did try to change the IP.
That's not a Factorio issue, it's a routing issue. When you try to conect to your external IP (76.187.x.x) from within your own network it doesn't work, because (this is a very simplified explanation) your router thinks it's an external address and is looking for it outside, while the server is actually inside on your PC. When running a server inside your own network you should use the local IP, not the internet IP.

Other people should be able to join the game at localhost:34198, or rather {YOUR_IP]:34198 (external view from a client) if it is public.

EDIT: This might actually work if your router has DMZ enabled and set to your PC, but I sincerely hope you didn't enable that function just to get Factorio running.

Re: 0.14.21 Server problem

Posted: Sat Dec 03, 2016 6:01 pm
by _RedTech
daniel34 wrote:
_RedTech wrote:On the client it first shows me connecting with my IP, doesn't work. Then I try to connect with localhost, and it does. Also, I did try to change the IP.
That's not a Factorio issue, it's a routing issue. When you try to conect to your external IP (76.187.x.x) from within your own network it doesn't work, because (this is a very simplified explanation) your router thinks it's an external address and is looking for it outside, while the server is actually inside on your PC. When running a server inside your own network you should use the local IP, not the internet IP.

Other people should be able to join the game at localhost:34198, or rather {YOUR_IP]:34198 (external view from a client) if it is public.

EDIT: This might actually work if your router has DMZ enabled and set to your PC, but I sincerely hope you didn't enable that function just to get Factorio running.
People cannot connect to it though, but it works fine on 0.14.20. I attached the logs when I try it on 0.14.20 (And this is a new log).