Fresh news, every day

Technology

Public vs private IP addresses: how they differ and how to find them

A public IP address identifies a home network on the internet and is assigned by an ISP to the router's WAN port. Private IP addresses identify individual devices on the local network and are assigned by the router. Devices with private addresses cannot access the internet directly and rely on the router and Network Address Translation to share the single public address. Common private ranges include 192.168.X.X, 10.X.X.X and 172.16.X.X, while 169.254.X.X indicates a device did not receive an address from the router.

Public vs private IP addresses: how they differ and how to find them

Main event and its significance

The source explains the difference between public and private IP addresses and why it matters for home networking. The central point is that a public IP address identifies the entire network on the internet, while private IP addresses identify the individual devices inside that network. This distinction matters because it determines how devices reach the internet, how the internet reaches them, and how users can troubleshoot connectivity problems.

What a public IP address is

When a household acquires an internet connection, the ISP assigns a unique public IP address to the router's WAN port. This address allows the network to access the internet and allows the internet to find the network. It is the address visible to outside services and websites.

What private IP addresses are

Devices connected to a home network, such as phones, computers and smart home hardware, connect to the router using private IP addresses rather than the public address. Devices on private addresses can communicate with each other locally but cannot directly access the internet. They must rely on the router. Devices outside the private network cannot communicate with devices using a private IP address, which is why a neighbor cannot send a print request to a home printer.

How the two work together

Although each device on a home network has its own private IP address, the router allows all of them to share a single public IP address when accessing the internet. This is made possible by Network Address Translation, a routing mechanism that manages communication between devices in the private network and the internet.

Private IP address ranges

Home networks usually use private addresses in the 192.168.X.X range. The Internet Assigned Numbers Authority has also reserved the 10.X.X.X range for large organizations and the 172.16.X.X range for medium organizations.

How to find a public IP address

The quickest way to find a public IP address is to use an online IP checker tool such as WhatIsMyIPAddress or ifconfig.me. Any device connected to the router that can access a web browser can be used for this.

How to find private IP addresses

Private IP addresses can be viewed in the router's control panel, which lists connected devices and their addresses. However, this method may not always show which address belongs to which device, because not all manufacturers include hostnames.

If the hostname does not appear, users can check the address directly on the device. On Windows, the ipconfig command displays the IPv4 address, which is the computer's private IP address. On macOS, ipconfig getifaddr en0 retrieves the Wi-Fi address and ipconfig getifaddr en1 retrieves the ethernet address. On an iPhone, users can go to Settings, then Wi-Fi, tap the information button next to the connected network, and scroll to the IPv4 section. On Android, users can go to Settings, then Network and internet, then Internet, tap the connected network, and scroll to find the private IP address.

Troubleshooting with IP addresses

Recognizing public and private addresses can help identify devices and troubleshoot connectivity issues. If a device has an unusual 169.254.X.X address, also known as Automatic Private IP, instead of the familiar 192.168.X.X range, the device did not receive an address from the router. If devices have valid private addresses but no internet access, the investigation can focus on the router and then the ISP, rather than checking the entire network chain.

Source: GROM.PRESS

Read also