Page 1 of 1
Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 7:40 pm
by Grandpa Stu
i'm trying to forward specific ports with a Linksys WRT54GS to open up the NAT on a couple PS3s connected to the router. I can setup the first one no problem, but as soon as i try to forward the same ports but on a different IP it gives me a warning saying those ports are already being forwarded.
is there a legit reason for this like an actual limitation with the router, or some sort of quirky bug? i tried upgrading the firmware but all it did was change the way it warned me about forwarding the same port.
anyone with experience on this?
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 7:56 pm
by Foo
You only have one port with that number coming into your connection, so it's only possible to forward that port to a single internal piece of hardware.
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 8:06 pm
by Foo
God my diagrams fucking rule.
Anyway, as shown above, you have your ports on the router... there's only 1 set starting at 1 and going up to 65 thousand or something like that.
Then you have the same set of ports on the PS3. And again on the other one.
You can't forward traffic coming in on a particular router port to both PS3s at the same time because each PS3 would receive a copy of the same information.
The way around this is where my networking knowledge lacks. Some applications allow you to specify an alternative port (q3 - net_port I think) but there are some cases where it's not possible to run several devices doing the same thing...
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 8:17 pm
by ^misantropia^
Foo wrote:You only have one port with that number coming into your connection, so it's only possible to forward that port to a single internal piece of hardware.
For UDP, yes (in almost every case). For TCP, no - where the exact value of 'no' is defined by your router's capabilities.
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 8:39 pm
by creep
^misantropia^ wrote:For UDP, yes (in almost every case). For TCP, no - where the exact value of 'no' is defined by your router's capabilities.
Please explain how a router (or any device) can take 2 incoming packets on, say, port 3111 and decide which goes to each of 2 different internal IPs. Or link a document explaining it
This is of course assuming the internal IPs have no requested these packets... because in that case it's not a 'port forwarding' issue at all.
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 8:49 pm
by Foo
I guess the extra variable with TCP is state
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 9:44 pm
by ^misantropia^
Foo wrote:I guess the extra variable with TCP is state
100% correct.
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 10:10 pm
by creep
Seriously... could you explain or offer a link to an explanation? I'm googling but mostly getting linux/bsd firewall table instructions, which isn't really explaining the process to me.
Re: Can't forward the same port to muliple IPs?
Posted: Fri Mar 21, 2008 10:56 pm
by Grandpa Stu
oooo you learn something new every day
so then...what's port triggering? in my googling to figure this out i stumbled upon a post on the linksys forum and a guy said to use port triggering to forward packets over the same port but to different IPs. does that work or is he an r-tard?
Re: Can't forward the same port to muliple IPs?
Posted: Sat Mar 22, 2008 12:00 pm
by ^misantropia^
creep wrote:Seriously... could you explain or offer a link to an explanation? I'm googling but mostly getting linux/bsd firewall table instructions, which isn't really explaining the process to me.
The truth is that both UDP and TCP are perfectly routable, but that lots of consumer market routers screw up UDP when two or more clients from the local network connect to the same external service. Such routers tend to track UDP traffic by the local port number. Works great when each client picks a random port number, not so great when the port number is static.
TCP is much easier to track because of the Sequence Number in the TCP header. It's a 32 bit random number that gets incremented with each packet. The chance of both clients generating the same sequence number is infinitesimally small.
Re: Can't forward the same port to muliple IPs?
Posted: Sun Mar 23, 2008 1:44 am
by obsidian
misantropia, you wouldn't happen to be one of the people pictured below, would you?

Re: Can't forward the same port to muliple IPs?
Posted: Mon Mar 24, 2008 12:58 pm
by ^misantropia^
Not nearly old or hairy enough.
That's an awfully young Bill Gates in the left corner.