I am trying to forward a series of ports to my computer. I have several computers in my network, and believe my router randomly assigns a port to each computer that connects to it. As I don't have a static IP for my computer, I was wondering if it is possible to forward the ports to all the IPs?
closed as not a real question by techie007, Oliver Salzburg♦, studiohack♦ May 15 '12 at 2:25
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
|show 1 more comment|
Technically what you state is possible. A host can accept incoming traffic on a given IP address+TCP/UDP port, and be programmed with forwarding that same traffic to mutliple IP addresses.
With TCP this would not do anything useful. TCP is a connection-oriented service depending on sequence numbers and state maintained between two, and only two hosts - it is really meant for only two hosts to communicate. Exception: if you wanted a second host to record traffic but not participate, then this would be useful.
It's possible to design something using UDP in this method but the aboveboard protocol would have to support that. HTTP, for example, depends on the connection-oriented properties of TCP. Some peer to peer protocols may operate this way, but not all protocols that use UDP do.
Multicasting supports this but only "one-way" - multiple hosts can "sign up" to a multicase IP and receive traffic, but sending is not covered.
So, to summarize, port forwarding is a 1-to-1 affair. You need to have a static IP or use UPnP if your router supports it. @Moab provides a good solution - on most home routers you can limit the range of IP addresses DHCP hands out (e.g. 192.168.0.2 through 192.168.0.126), and then manually set your system to something outside of that (manually set your system to 192.168.0.129).