NAT
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
Well, it depends on the specifics of the software you are using. If it's expecting information on a particular port, you may need to make a static route in your NAT router to point to the correct computer. If you are just generally musing how it works, it's because the router passes the information along (multicasts it) and the computer that wants it grabs onto it, the other computers on the subnet simply ignore the multicasted information. This is essentially the difference between a router and a switch. A switch tends to direct traffic, the router simply shunts it along.
------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
Google it.
-- Kein Mitleid Für Die Mehrheit
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
A network client application such as a web browser uses a randomized source port address which is not in the range of standard server application port numbers when it establishes a connection with a server. When it sends packets through the router to the server, the NAT enabled router keeps track of which private host IP address used that source port. Then when traffic comes in from the outside, the router examines the destination port, and if it is the same as the source port used by one of the hosts, it then forwards the traffic to the correct private host address. The only way to reach hosts inside the private network from the outside is to set up static port mapping on the NAT router to send all traffic destined to a specific port number to a specific private IP address.
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
-
If you have a router with NAT, and lets say I have a program that listens for a response from a server on the internet. How does the server know how to reach the client? If you have four computers how can an outside computer differentiate and send a signal to one of the individual computers?
The Digital World. It is an amazing place in which we primitive humans interact. Our flesh made this synthetic machine. You see, we are so smart, we know a lot of stuff. We were grown from cells that came from the universe, which the matter and physics I'm typing in it is amazing how the universe is working. Human life is very amazing. How I experience this sh*t its like wow.
-
Well, it depends on the specifics of the software you are using. If it's expecting information on a particular port, you may need to make a static route in your NAT router to point to the correct computer. If you are just generally musing how it works, it's because the router passes the information along (multicasts it) and the computer that wants it grabs onto it, the other computers on the subnet simply ignore the multicasted information. This is essentially the difference between a router and a switch. A switch tends to direct traffic, the router simply shunts it along.
------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!
_Damian S_ wrote:
A switch tends to direct traffic, the router simply shunts it along.
Or you mean the converse?