Full disclosure: There is a (basically equivalent) Q on here, that has an approved A. Problem: the commenters have the same problem in understanding the A that i have, and the answerer doesn’t seem to respond anymore;

So here goes:

Very usual setup, two computers with browsers, local IP:port 192.168.1.11:80 and 192.168.1.12:80, behind a router at 5.5.5.5.

Both want to know something from answer-R-us.org (1.2.3.4:1000):

  • 11 wants to know ‘color of oranges?’
  • 12 wants to know ‘number of the beast?’.

According to my understanding of the answer from from the Q linked above, the router takes the questions, forwards them to 1.2.3.4:1000, with return address 5.5.5.5, and internally keeps a note like:

Sent request from 192.168.1.11:80 to 1.2.3.4:1000
Sent request from 192.168.1.12:80 to 1.2.3.4:1000

Now two messages come in from 1.2.3.4:1000 to 5.5.5.5 : “orange” and “666” – how does the router know which clients get what?

Leave a Reply

Your email address will not be published. Required fields are marked *