Public IP vs. Private IP and Port Forwarding

If the image does not appear, use a vpn

 

If you check the picture, you will actually understand the difference between public ip and private ip


public ip  : is used to access the global internet

 private ip : is used to access the local internet  which consists of the router and the devices connected to the network

If you are within the local network, it is easy to access the rest of the devices in the same network 

If you are in the external network, access is possible only through the public ip of the router, and yet some details remain missing because all devices within the internal network are accessed  through the public ip of the router, so how does the router know which device will be accessed? 

One of the techniques to solve this problem is Port forwarding

We know that every router has a forwarding TABLE, by which packets are forwarded in the network

So all we have to do is tell the router that for a connection on port xxxx, access an address in the internal network that we are renewing, which is the private ip of the device 

Popular posts from this blog

OSI Model