Computer Networking

Transport Layer

Public Vs. Private IP Addresses

Public and private IP addresses are two basic parts of your device’s identity. In simple words, the public IP address is your identity over internet and Private IP is your identity in local network without internet.

Note: If your device is assigned private IP address, then your device will not be able to access the Internet. But still you will be able to access local network resources.

Public IP address Private IP address
Internet service provider (ISP) assigns and control the Public IP to any device connected with internet. Private IP addresses are provided by network devices such as

  • Routers which using NAT (network address translation).
  • Mobile/EVO hotspot which using type 2 NAT.
Public IP address also called External or Global IP. Private IP address also called Internal or local IP.
It is required when needs to communicate outside your private network, over the internet It is required when needs to communicate within your private network. Private network may involve your home or office network.
Public IP is a unique numeric code never reused by other devices over internet at the same time. Private IP is a non-unique numeric code. It will be unique for any private network but may be reused by other devices in other private networks.
Finding of Public IP,  Simply Type What is my IP address over Google. The desired public IP will be visible. Finding of private IP is possible on your device’s internal settings, by using the command of “ipconfig”.
Public IP addresses are Not free Private IP addresses are totally Free
Public IP addresses cannot fall within private IP address ranges. Private IP addresses fall within private IP address ranges.
Other than reserved private IP address range are Public IP addresses

Example: 8.8.8.8.

Private IP addresses Ranges

Class A: 10.0.0.0 — 10.255.255.255;
Class B: 172.16.0.0 — 172.31.255.255; 
Class C: 192.168.0.0 — 192.168.255.255

Example: 10.11.12.15

Important: Before to  play multiplayer game it needs to put your public IP, but if it is dynamic then it will change after each short period of time and player need to update it shortly each time then it’s time consuming. So, in this case static IP is more effective than dynamic. Static IP is costly than dynamic.

Who Assigns a private IP address to our Laptops

As we know a Private IP address may assigned to a device even it is not connected to router. Who assigns this private IP address to our device (i.e. Laptop, PC).

Simple answer is, in such cases the mobile acts as a router which assigns private IP address to your connected device via WiFi.

Explain: When you enable Hotspot from mobile or EVO, it acts as a wireless router with DHCP. When you connect your devices (i.e. laptop) to your mobile’s Hotspot, then your mobile assigns a Private IP address to your corresponding device (such as Tablet, PC, laptop’s).

DHCP of mobile hotspot has its own NAT, which is a Type 2, B, Moderate one. EVO WiFi also acts as a mobile hotspot.

 

Help Other’s By Sharing…

Contact Us

Burewala, Vehari, Punjab, Pakistan

cstaleem1@gmail.com

Website: CStaleem.com

Pin It on Pinterest