Well, the best way I can think of to answer your question is to draw ya a diagram of exactly what happens when you connect to yahoo.com.

ok, here's an example where you are connecting to yahoo.com without a router...

'You ask yahoo.com to SYNchronize a connection
you -> TCP SYN packet -> yahoo.com
Source IP:
Target IP:

'yahoo.com ACKnowledges the SYN and says all is go
yahoo.com -> TCP SYN/ACK packet -> you
Source IP:
Target IP:

'you acknowledge the SYN/ACK. connection complete
you -> ACK -> yahoo.com
Source IP:
Target IP:

there's the connection sequence. understand? good. Now let's take a look how it differs when a router is thrown into the mix. Now, one thing to keep in mind. When directly connected to hte internet, our Gateway was configured by your ISP. A gateway is where a computer sends all of it's packets that don't belong in the local network (specified under the subnet mask). So if you have an IP of and your subnet mask is then all packets destined for a 192.168.1.x is sent directly to the computer, and everything else is sent to the Gateway. The Gateway is your access to the world. When you have a router configured at, then THAT is your Gateway. THAT is where all packets are sent from your computer that isn't on your local lan. So here's what happens when you send a connection request to yahoo.com.

key = router external IP = router lan IP = your IP = yahoo.com IP


'SYN packet sent from you to the router. -> TCP SYN ->

'router caches information in it's routing table that is connecting to

'SYN packet sent from router to yahoo.com -> TCP SYN ->


'SYN/ACK packet sent by yahoo.com to the router -> TCP SYN/ACK ->

'router checks it's routing table and sees that is an IP that is connecting to. To keep track of multiple connections from multiple computers on the LAN to yahoo.com, keep in mind that each connection to yahoo.com requires a unique router local port. So all responses to that port that matches the stored routing information is passed through to the relevent lan computer.

'router sends packet to the lan computer -> TCP SYN/ACK ->


'you send the connection acknowledgement to the router -> TCP ACK ->

'router sends it off to yahoo -> TCP ACK ->
Domain Registration, Hosting, Management