An IPv4 address serves as a unique numerical label assigned to every device participating in a computer network that uses the Internet Protocol for communication. Understanding how to check this address is essential for troubleshooting network issues, configuring security settings, or verifying your connection type. This guide provides clear, step-by-step instructions for finding your IPv4 address across various operating systems and contexts.
Understanding IPv4 and Its Format
IPv4, or Internet Protocol version 4, defines an address as a 32-bit number displayed in decimal format. This address is typically represented as four octets separated by periods, such as 192.168.1.1, where each segment ranges from 0 to 255. This structure allows for roughly 4.3 billion unique addresses, a number that has been largely exhausted, leading to the development of IPv6. The address is divided into a network portion, which identifies the specific network, and a host portion, which identifies the device on that network. Private addresses, like those in the 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 ranges, are used within local networks and are not routable on the public internet.
Checking Your IPv4 Address on Windows
The Command Prompt and PowerShell offer quick methods to retrieve network configuration details. These built-in tools provide the most direct view of your system's current IP configuration.
Using Command Prompt
Press the Windows key + R, type cmd , and press Enter.
Type the command ipconfig and press Enter.
Look for the entry labeled "IPv4 Address" under your active network adapter, such as Ethernet adapter or Wireless LAN adapter.
Using PowerShell
Right-click the Start button and select Windows PowerShell.
This command filters for active connections and displays the IPv4 address directly.
Checking Your IPv4 Address on macOS
Apple’s operating systems provide multiple graphical and terminal-based methods to view your network settings. The System Preferences offer a visual approach, while Terminal delivers precise command-line output.
Using System Preferences
Open the Apple menu and select System Preferences (or System Settings).
Click on Network.
Select your active connection (Wi-Fi or Ethernet) from the sidebar.
Click the Advanced button, then navigate to the TCP/IP tab. Your IPv4 Address will be listed near the top.
Using Terminal
Open the Terminal application, found in Applications > Utilities.
The output will display your active IPv4 address, usually associated with the en0 or en1 network interface.
Checking Your IPv4 Address on Linux
Linux distributions offer a consistent set of command-line tools for network diagnostics. The ip command is the modern standard, though older utilities like ifconfig might still be available.
Open a terminal window.
Type ip addr show and press Enter.
Scan the output for the "inet" label under your active interface (like eth0 or wlan0); the address listed is your IPv4 address.