Changes

no edit summary
Line 17: Line 17:  
Lets say a user behind the computer with the IP address '''192.168.1.3''' wants to check a news site whose address is '''68.1.31.1'''. The computer generates a package containing its IP address, the destination IP address and the request to access website. The computer cannot send the packet through the Internet directly to the website's IP address as it would not receive any response. This is because the host would not know how to reach the computer's IP address of 192.168.1.3 since there might be thousands of devices using that same IP address at any given moment.  
 
Lets say a user behind the computer with the IP address '''192.168.1.3''' wants to check a news site whose address is '''68.1.31.1'''. The computer generates a package containing its IP address, the destination IP address and the request to access website. The computer cannot send the packet through the Internet directly to the website's IP address as it would not receive any response. This is because the host would not know how to reach the computer's IP address of 192.168.1.3 since there might be thousands of devices using that same IP address at any given moment.  
   −
This is where NAT comes in. Instead of sending the package directly to the host, it goes through the router who then changes the sender's IP address into its own Public IP Address:port, in this case '''101.89.101.12:8801'''.So now when the host receives the package it knows exactly where to send the response. It then generates a response package and sends it to 101.89.101.12:8801. The router then receives that response on the specific port and knows exactly where to re-route it - to '''192.168.1.3:1025'''
+
This is where NAT comes in. Instead of sending the package directly to the host, it goes through the router who then changes the sender's IP address into its own Public IP Address:port, in this case '''101.89.101.12:8801'''.So now when the host receives the package it knows exactly where to send the response. It then generates a response package and sends it to 101.89.101.12:8801. The router then receives that response on the specific port and knows exactly where to re-route it - to '''192.168.1.3:102'''
    
==See also==
 
==See also==
    
For more general information about IP addresses and their types visit our '''[[Private and Public IP Addresses]]''' wiki page.
 
For more general information about IP addresses and their types visit our '''[[Private and Public IP Addresses]]''' wiki page.
 +
 +
[[Category:Networking]]