Factorio

Factorio

View Stats:
XATEV Mar 12, 2016 @ 5:58am
Factorio Server port forwarding
Hi. I tried to port forward a Factorio Server because I don't really like Hamachi at all :P I use the TP-link WR940N router and after having set up a virtual server with the UDP port 34197 and after having added the port to firewall settings it still won't work (port closed) :steamsad: . Yes, the IP Address does match my PC's ipv4. Is there anything I did wrong or missed ?

Thanks for reading!
< >
Showing 1-15 of 20 comments
XATEV Mar 12, 2016 @ 6:04am 
Do I need to port forward my modem aswell?
-VG- Napster Mar 12, 2016 @ 6:42am 
If you have a modem that only acts as modem you dont need to forward there. if you have a modem-router you need to setup the port fotward on the modemrouter- then your tp link WR940N would just act as switch. ( Basically if you have a modem and then a router - where all the pcs are connected you need to set it up on the router. ) You also should set your router in a way so that your pc gets always the same ip ( Address reservation ) , as if you forward a port you have to specific an ip to where to port gets forwareded to. #

if you connect to your tp link router click on DHCP then Address Reservation and give your pc an specific ip ( this will make sure that your pc will always gets this internal ip ) like 192.168.1.130 / 192.168.0.130 ( depends x.x.0/1.x < depends on your network setup ) after you have an ip set you can forward the port to that ip.

if you friend will connect to you over the internet he would need your internet ip
http://whatismyipaddress.com/de/meine-ip

and then he needs to add the port at connection x.x.x.x:34197

Do not deactivate the windows firewall but if you have another antivirus with firewall just deactivate it for testing purposes so you can be sure that the firewall does not block the port
Last edited by -VG- Napster; Mar 12, 2016 @ 6:52am
XATEV Mar 12, 2016 @ 7:12am 
I have a modem-router and I did set up the port forward on the modem-router and on my tp link router. Should work, right? :steamhappy:
Mansen Mar 12, 2016 @ 8:08am 
Originally posted by Kimberlee:
I have a modem-router and I did set up the port forward on the modem-router and on my tp link router. Should work, right? :steamhappy:

A side question - Why on earth do you have TWO functioning routers? You really, REALLY need to set either of those in Bridge mode, so it only functions as a switch. Otherwise you're asking to have the worst possible experience trying to host anything.
XATEV Mar 12, 2016 @ 9:59am 
BECAUSE my provider gave me a modem with router functionality, but really low range. Thats why I use my tp-link router. Nice interface and easy. And no I'm not going to use Bridge mode.
Nailfoot Mar 12, 2016 @ 10:07am 
I noticed you used the IPV4 ip address. This is your IP on just your local network, which is what you need to port-forward to.

Give your buddy the internet IP, not the IPV4.
Mansen Mar 12, 2016 @ 2:39pm 
Originally posted by Kimberlee:
BECAUSE my provider gave me a modem with router functionality, but really low range. Thats why I use my tp-link router. Nice interface and easy. And no I'm not going to use Bridge mode.

So you have one router that's nice to use... so what about the other one? I don't see why you wouldn't want to bridge that to be honest. You're just asking for all manner of packet trouble by having two devices trying to fight for your local network ownership.

Originally posted by Nailfoot:
I noticed you used the IPV4 ip address. This is your IP on just your local network, which is what you need to port-forward to.

Give your buddy the internet IP, not the IPV4.

Erm... Nail... IPv4 has nothing to do with whether or not you're using a local IP or one on the internet. In fact IPV4 has been the standard for as long as the internet has been around (more or less)

You may be thinking of local IPs which tend to be in the 10.0.0.x or 192.168.x.x range - But those are IP(v4) addresses too. An IPv6 address looks something like this: FE80:0000:0000:0000:0202:B3FF:FE1E:8329

IPv6 addresses aren't really taking off as fast as the industry would want - even though we have technically run out of IPv4 addresses.

Edit: But yeah - You definitely need to give the friend your public IP, not one of your local ones. That'd be liked asking the mailman to deliver across country by handing them the door number, not their postal code.
Last edited by Mansen; Mar 12, 2016 @ 2:40pm
Nailfoot Mar 12, 2016 @ 2:57pm 
Originally posted by Mansen:
Originally posted by Kimberlee:
BECAUSE my provider gave me a modem with router functionality, but really low range. Thats why I use my tp-link router. Nice interface and easy. And no I'm not going to use Bridge mode.

So you have one router that's nice to use... so what about the other one? I don't see why you wouldn't want to bridge that to be honest. You're just asking for all manner of packet trouble by having two devices trying to fight for your local network ownership.

Originally posted by Nailfoot:
I noticed you used the IPV4 ip address. This is your IP on just your local network, which is what you need to port-forward to.

Give your buddy the internet IP, not the IPV4.

Erm... Nail... IPv4 has nothing to do with whether or not you're using a local IP or one on the internet. In fact IPV4 has been the standard for as long as the internet has been around (more or less)

You may be thinking of local IPs which tend to be in the 10.0.0.x or 192.168.x.x range - But those are IP(v4) addresses too. An IPv6 address looks something like this: FE80:0000:0000:0000:0202:B3FF:FE1E:8329

IPv6 addresses aren't really taking off as fast as the industry would want - even though we have technically run out of IPv4 addresses.

Edit: But yeah - You definitely need to give the friend your public IP, not one of your local ones. That'd be liked asking the mailman to deliver across country by handing them the door number, not their postal code.

Yeah, I was simply using the convention that IPCONFIG uses for an IP on your local network behind a router. I should have been more clear about not using the local IP. I think my point was taken though.

Maybe.

Heck. I don't know.
Stealth Mar 12, 2016 @ 3:11pm 
well it is not that unlickely someone uses 2 routers behind eachother, not that often in privat spaces but hey

question is, are they behind or parallel to each other?

http://images.akamai.steamusercontent.com/ugc/308866715004854556/65BAD1963F91975053A299CB30236CBDF82CAD33/
figure left, the modem-router from your provider is the yellow divider, your tp-link one is the red one, connectet to the first via "internet"-port on the tp-link

figure right, modem-router is the real router and the tp-link is connected via normal ethernet-port on the tp-link, tp-link is nothing more than wlan-ap, modem-router does dns, dhcp and gateway
Last edited by Stealth; Mar 12, 2016 @ 3:19pm
XATEV Mar 13, 2016 @ 7:42am 
Going to try Bridge mode
Stryderunknown Mar 13, 2016 @ 9:57am 
If bridge mode didn't work.
Make sure that your modem LAN side IP(s) is a different range to your Router LAN side IP(s).

For instance the Modem LAN side could be 192.168.0.# range, while your Router LAN could be 192.168.1.# range.
(The reason for making the ranges different is that some Routers/Firewall block data being sent from IP's within the same range as the LAN and this can cause problems when configuring servers.)
SaLaĐiN Mar 13, 2016 @ 1:32pm 
Don't forget to turn on UPnP as well.
Peace Mar 13, 2016 @ 2:42pm 
So you do double NAT routing then? I would also jump on the recommendation to set the ISP router to bridge mode and handle NAT on your favoured box. Multiple routers is no problem but multiple NAT is just gonna cause headaches when you want to portforward.

I run
[ISP box bridged]->[router/NAT]->192.168.1.0->[router]->10.5.2.0->[router]->172.17.2.0 and i just set portforwarding in the first router even for the 172.17.2.0 subnet. The rest is handled by static routes in the routers.
you could also just use client software to bridge this gap without all the technical hassle, such as: EVOLVE. https://www.evolvehq.com/welcome

youll just have to make sure everyone who is playing has the client and is registerd on it, then if you used evolve you make a party and invite your friends into it and it'll auto assign local network IPs, you just right click and copy the IP or hand jam it then put that in Factorio, don't even need the port #, and voila you'll be playing as if all the ports were forwarded or you are all on the same network... minus all the route-around you are trying to do here... You can use such clients for other games too, like risk of rain etc.
Last edited by Prof. Dr. Sir Lord Master, Esq.; Mar 13, 2016 @ 3:11pm
Stealth Mar 13, 2016 @ 3:10pm 
why the heck are you using 3 routers? do you host webpages from home?
< >
Showing 1-15 of 20 comments
Per page: 1530 50

Date Posted: Mar 12, 2016 @ 5:58am
Posts: 20