Why NAT is used
- Saves public IP addresses
- Hides internal network structure
- Adds an extra layer of security
Example
Your home network might look like this:
- Laptop → 192.168.1.10
- Phone → 192.168.1.20
- Router → Public IP (e.g., 103.x.x.x)
When devices access the internet, the router converts private IPs to the public IP.
So websites cannot directly see your internal network devices.