Can't connect to my dedicated server

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.
Motive133
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Mar 02, 2016 2:26 pm
Contact:

Can't connect to my dedicated server

Post by Motive133 »

I've setup a headless dedicated server on my home server running version 12.24. I'm running the server with the command "Factorio.exe --start-server save1.zip" and I am able to connect over LAN.

The problem exists while trying to connect VIA WAN. I have port forwarded the port.
Image

I also tested my client by connecting to a server from the multiplayer forums, which i was able to connect to.

I have several questions:

1. Is peer-to-peer disabled by default in 12.24?
If so, disabled by default on both the client and server?

2. Does the "--peer-to-peer" command enable P2P? (I don't want to enable it, just asking for knowledge sake.)

3. Is UDP 34197 the only port that needs to be opened for a server?

I assume since I was able to connect to the Server from the multiplayer forums that the server I am running is set to P2P, I know for sure that port 34197 is closed on my client end. (I manage the firewall at the company I work for)

Any suggestions or help would be appreciated. Thanks.
starholme
Fast Inserter
Fast Inserter
Posts: 201
Joined: Tue Oct 21, 2014 7:25 pm
Contact:

Re: Can't connect to my dedicated server

Post by starholme »

1. Yes, and yes.
2. Also yes.
3. Yes again.

I like these questions, easy to answer!

Anyway, to help troubleshoot you problem, try these items:

Are you trying to run the client and server on the same computer? Factorio doesn't play nice this way. Host on a separate computer, or a VM works surprisingly well(playing with a coworker this way)

Ensure the port really is open - Check with an external tool such as http://www.yougetsignal.com/tools/open-ports/

Let us know what happens!
Motive133
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Mar 02, 2016 2:26 pm
Contact:

Re: Can't connect to my dedicated server

Post by Motive133 »

Thank you for the response.

The Client and Server are 2 separate computers.

According to the external tool, the port is "closed". That being said, I checked the port on a known working server and it also appeared "closed" to the tool. So I assume the software doesn't respond to the port probe?
Motive133
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Mar 02, 2016 2:26 pm
Contact:

Re: Can't connect to my dedicated server

Post by Motive133 »

Okay, I've also tried doing a full reinstall of Factorio on the server. I've changed the port number to a known working port. I've added the server to the DMZ. None of these things have resulted in a connectable server.
starholme
Fast Inserter
Fast Inserter
Posts: 201
Joined: Tue Oct 21, 2014 7:25 pm
Contact:

Re: Can't connect to my dedicated server

Post by starholme »

Strange. It's always worked for me if the server was running. I just tried, against this public server: viewtopic.php?f=53&t=13579

The IP listed there responded to my port check of 34197.

I don't have one running myself to check as I'm at work...
Motive133
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Mar 02, 2016 2:26 pm
Contact:

Re: Can't connect to my dedicated server

Post by Motive133 »

Well, I figured out the issue...

User error. /facepalm

Turns out I had a port range that conflicted with Factorio's default port pointed to another internal IP.

That being said, no clue why the known working port did not resolve the issue.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Can't connect to my dedicated server

Post by daniel34 »

starholme wrote:Strange. It's always worked for me if the server was running. I just tried, against this public server: viewtopic.php?f=53&t=13579

The IP listed there responded to my port check of 34197.

I don't have one running myself to check as I'm at work...
My server might be an exception to that port checker (http://www.yougetsignal.com/tools/open-ports/), as I also have a web server running on TCP 34197 for the modpack download and some other stuff.
quick links: log file | graphical issues | wiki
Motive133
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Mar 02, 2016 2:26 pm
Contact:

Re: Can't connect to my dedicated server

Post by Motive133 »

FYI I can connect fine to the server now, the port still shows "closed" on the Port Tester that you linked. /shurg
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Can't connect to my dedicated server

Post by prg »

There are no open or closed UDP ports, that's only a TCP thing.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
starholme
Fast Inserter
Fast Inserter
Posts: 201
Joined: Tue Oct 21, 2014 7:25 pm
Contact:

Re: Can't connect to my dedicated server

Post by starholme »

prg wrote:There are no open or closed UDP ports, that's only a TCP thing.
Suddenly it all makes sense. It's always worked for me because I always port forward UDP and TCP. It's just a habit. So the port checking would work for me, but not for anyone who only picks UDP.
Post Reply

Return to “Technical Help”