![]() |
VOOZH | about |
Private IP addresses play an important role in computer networking, permitting organizations to build internal networks that communicate securely without conflicting with public addresses. In this article, we will see private IP addresses in networking.
Private IP Addresses are those addresses that work within the local network. These addresses are non-routable on the Internet. The address is assigned by the network router to your particular device. The unique private IP address is provided to every device which is on the same network. In this way, devices communicate with one another on the same network without connecting to the entire Internet. Private IP addresses can provide more security within a particular network. These addresses cannot be seen on the Internet, unlike the public IP address. Only devices within the local network can see the address of one another.
Although most people don't need to know their IP address, there are several situations where it can be useful, including when connecting a computer to another networked device.
Platforms differ when it comes to to find the IP address of a device.
We need private IP addresses in order to secure and to manage our local networks. Private IPs are used internally inside a home or office network so that many devices, such as computers, smartphone, and printers, can communicate with each other using the same IP without exhausting public IPs. Public IPs are few, so conserving them through the use of private IPs would be beneficial. This private address helps in protection against harmful external attacks because they are not accessible directly from the internet. Using private IPs means that devices can communicate locally and one public IP address can connect the whole network to the internet this makes it more efficient and secure.
Private IP address exists within the specific ranges as reserved by the Internet Assigned Numbers Authority (IANA). Private IP address ranges are generally reserved for private networks. These include home networks, office networks, and a LAN. These are not routable on the public Internet, meaning that their primary use would be to identify the machines within the local network. There are private IP address ranges for both IPv4 and IPv6.
These private address ranges enable devices on the private network to communicate effectively without conflicting the usage of the public IP addresses, hence the need for it in network management and security.
Following are the three IPv4 address ranges of private IP addresses:
- Class A has 16,777,216 IP addresses and is used by large networks and has 8 bits for the network and 24 bits for hosts.
- Class B has 1,048,576 IP addresses and is used by medium networks and has 16 bits for the network and 16 bits for hosts.
- Class C has 65,536 IP addresses and this is the class of IP addresses that refers to home or smaller networks with 24 bits for the network and 8 for the hosts.
IPv6, private addresses are referred to as Unique Local Addresses (ULA) and are defined by RFC 4193:
Range: fc00::/7
The range is split into two parts:
The range except assigned to Private IP Address is used to assign Public IP Address on a network as public IP addresses are unique for each device on the Internet. Therefore, private networks can use these address ranges for allocating private IP addresses in a specific network. Private IP addresses can be reused on another network which is not possible with Public IP addresses.
| Parameter | Private IP Address |
|---|---|
| Scope | It is assigned locally within a specific network. |
| Communication | It is used by devices to communicate with one another on the same network. |
| Assigned By | It is assigned by the LAN administrator or network operator. |
| Cost | Private IP Address is free of cost. |
| Reused | Private IP addresses can be reused by the devices on another network. |
| How to find it? | The ifconfig command is used to search your Private IP address. |
| Range | The reserved address range for different classes is as follows:
|
| Example | Example of Private IP Address -192.168.12.40. |
Public IP | Private IP |
|---|---|
A special number given to a device with a direct internet connection | Special number given to a device on a local network |
Available online and accessible from anywhere | Restricted to the local network |
Internet service providers (ISPs) is the assigning authority | Assigned by network address translators (NATs) or routers |
They are distinct throughout the whole web | Reusable across several local networks |
Recognizing devices connected to the internet and facilitating communication between them. | Recognizing devices on a local network and enabling device-to-device communication internally. |