Page 1 of 1

Steam version game could not find my headless server

Posted: Tue Aug 18, 2020 11:57 pm
by tayir149
Solved. It was my stupid brain after all.
I have set up a headless server on windows on another pc. When I tried to find my server in lobby, it doesnt show up. I downloaded zip version of the game from factorio.com and when I run this one, it can find my server and connects withouth any erros. Could someone help me why is that?

Re: Steam version game could not find my headless server

Posted: Wed Aug 19, 2020 3:33 pm
by bigmond
Do you have your username and password in teh server config, or do yo uhave your username AND token

Re: Steam version game could not find my headless server

Posted: Wed Aug 19, 2020 11:31 pm
by tayir149
bigmond wrote: Wed Aug 19, 2020 3:33 pm Do you have your username and password in teh server config, or do yo uhave your username AND token
Yes. I have. My friends can see it with steam game. Only myself can’t find it. Need to use zip version that downloaded from factorio can see it.

Re: Steam version game could not find my headless server

Posted: Wed Aug 19, 2020 11:54 pm
by tayir149
It’s same whether I use Windows server on my pc or remote Linux server

Re: Steam version game could not find my headless server

Posted: Thu Aug 20, 2020 12:07 am
by Squelch
It is an issue that comes from how NAT works in your router. What is happening is your actual game connection is coming from the same "translated" IP address as your server and is therefore ignored.

The workaround is to allow yourself to directly connect to your server on the internal LAN via its IP.

This is a common problem with a lot of games where you are able to self host a server, and isn't unique to Factorio.

Re: Steam version game could not find my headless server

Posted: Thu Aug 20, 2020 12:15 am
by tayir149
Squelch wrote: Thu Aug 20, 2020 12:07 am It is an issue that comes from how NAT works in your router. What is happening is your actual game connection is coming from the same "translated" IP address as your server and is therefore ignored.

The workaround is to allow yourself to directly connect to your server on the internal LAN via its IP.

This is a common problem with a lot of games where you are able to self host a server, and isn't unique to Factorio.
I used rented a remote server and hosted the game that way. Still facing same issue. I don’t think it considers same ip now is it?

Re: Steam version game could not find my headless server

Posted: Thu Aug 20, 2020 12:28 am
by Squelch
tayir149 wrote: Thu Aug 20, 2020 12:15 am I used rented a remote server and hosted the game that way. Still facing same issue. I don’t think it considers same ip now is it?
Ah! that is a detail that I overlooked, so please excuse my assumption that you were serving locally.

Are you able to connect directly to your remote server? It won't necessarily fix the issue, but may help uncover why.

[Edit] Also, you could consult your server logs to see if the connection is even being negotiated from your instance, and possibly the reasons why it might be rejected.

Re: Steam version game could not find my headless server

Posted: Thu Aug 20, 2020 1:03 am
by tayir149
Squelch wrote: Thu Aug 20, 2020 12:28 am
tayir149 wrote: Thu Aug 20, 2020 12:15 am I used rented a remote server and hosted the game that way. Still facing same issue. I don’t think it considers same ip now is it?
Ah! that is a detail that I overlooked, so please excuse my assumption that you were serving locally.

Are you able to connect directly to your remote server? It won't necessarily fix the issue, but may help uncover why.

[Edit] Also, you could consult your server logs to see if the connection is even being negotiated from your instance, and possibly the reasons why it might be rejected.
How stupid of me, I set to my search filter in lobby without password, that’s why I can’t find my server.
Thank you for your reply

Re: Steam version game could not find my headless server

Posted: Thu Aug 20, 2020 2:55 am
by Squelch
I'm glad you got it sorted. Enjoy your game.