Re: Port Information
Date: April 11, 2007 01:24AM
Here's what we can do then:
Let's say my IP on the local network is 192.168.1.2, and I am able to send from port 56000. My router will remap this port to a certain port on the router say port 22222 on the router's IP, say 234.1.1.1
When the server (outside the network) I want to communicate with receives a message from my computer, the message will show up as from port 22222 of 234.1.1.1 (the router information). If I am also listening on that port, the server can simply reply to that IP on that port and I will get all the messages. In this way, we can establish 2-way communication through a router.
The port that you send on is the only reliable port for the server outside to reply to. Imagine if I send a message on my local port 56000, as above, but listen on local port 32000, for example (this is the situation with the Xtra currently). The server can't reliably determine how to get to my local port 32000, even after I've sent it a message from port 56000. It only knows 1 port reliably: the one from which it received a message.
It's a lot easier to explain with a diagram, but I hope that clears it up a bit.