Private IP address of a system is the IP address which is used to communicate within the same network. Using private IP data or information can be sent or received within the same network.
Public IP address of a system is the IP address which is used to communicate outside the network. Public IP address is basically assigned by the ISP (Internet Service Provider).
Difference between Private and Public IP address:
|PRIVATE IP ADDRESS||PUBLIC IP ADDRESS|
|Scope is local.||Scope is global.|
|It is used to communicate within the network.||It is used to communicate outside the network.|
|Private IP addresses of the systems connected in a network differ in a uniform manner.||Public IP may differ in uniform or non-uniform manner.|
|It works only in LAN.||It is used to get internet service.|
|It is used to load network operating system.||It is controlled by ISP.|
|It is available in free of cost.||It is not free of cost.|
|Private IP can be known by entering “ipconfig” on command prompt.||Public IP can be known by searching “what is my ip” on google.|
10.0.0.0 – 10.255.255.255, 172.16.0.0 – 172.31.255.255, 192.168.0.0 – 192.168.255.255
Besides private IP addresses, rest are public.
|Example: 192.168.1.10||Example: 184.108.40.206|
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Know your public and private IP addresses
- Difference between Public and Private in C++ with Example
- Difference between Private key and Public key
- Difference between Public and Private blockchain
- Difference Between Public Cloud and Private Cloud
- Mapping Virtual Addresses to Physical Addresses
- Difference Between Virtual Private Network (VPN) and Proxy
- Difference between Virtual Private Network (VPN) and Multi-Protocol Label Switching (MPLS)
- Are Gmail Addresses Case Sensitive?
- Sort the given IP addresses in ascending order
- Program to find Class, Broadcast and Network addresses
- Public Key Encryption
- Public vs Protected in C++ with Examples
- Private Browsing
- Private VLAN
- Private Branch Exchange (PBX)
- What is APIPA (Automatic Private IP Addressing)?
- Port Address Translation (PAT) mapping to Private IPs
- Types of Virtual Private Network (VPN) and its Protocols
- Difference between AIX and OS/2
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.