Every device connected to a network requires a unique identifier to communicate effectively, and your computer's IP address serves precisely this purpose. This numerical label acts as a digital address, ensuring data packets arrive at the correct destination without confusion. Understanding how to locate this identifier is essential for troubleshooting network issues, configuring security settings, or simply verifying your connection status. This guide provides clear, step-by-step instructions for finding your IP address on any major operating system.

Before diving into the methods, it is helpful to understand the two primary types of addresses you might be looking for. The internal IP address, often assigned by your router, is used for communication within your local network, such as your home or office. In contrast, the external IP address is the address your entire network uses to interact with the broader internet, typically assigned by your Internet Service Provider. The process for finding each type differs slightly, so identifying which one you need is the first critical step.

Finding Your IP Address on Windows
For users of Microsoft Windows, the operating system provides several straightforward graphical and command-line interfaces to retrieve network information. The most visual method involves navigating through the Settings menu, where all active network connections are displayed. Alternatively, the Command Prompt offers a quick text-based approach that is popular among IT professionals for its efficiency and scriptability.

Method 1: Using the Settings App
- Open the Start menu and click on the gear icon labeled "Settings".
- Navigate to "Network & Internet" and select "Status" from the left-hand menu.
- Scroll down and click on "View your network properties" to expand the section.
- Under the "Properties" section, locate the entry next to "IPv4 address" for your internal network number.

Method 2: Using Command Prompt
For a faster approach that also reveals the external address, the Command Prompt is unmatched. By executing a single command, you can bypass graphical interfaces and retrieve raw network data directly from the operating system. This method is particularly useful when the graphical interface is unresponsive or when you need to input the address into another tool.
- Press
Windows Key + R, typecmd, and press Enter to open the Command Prompt. - To find your internal address, type
ipconfigand look for the "IPv4 Address" under your active connection. - To find your external public IP address, type
curl ifconfig.meand press Enter. This command queries a dedicated website that reports the IP address seen from the internet.

Finding Your IP Address on macOS and Linux
Apple’s macOS and various Linux distributions share a common Unix foundation, which means they utilize a powerful command-line tool known as Terminal. While these systems also feature graphical network settings, the Terminal provides the most direct and comprehensive view of network configuration, revealing both local and external addresses with precision.
Using the Terminal

Regardless of whether you are using macOS or Linux, the process for retrieving your IP address via the command line is remarkably consistent. The ip command has largely replaced older tools like ifconfig due to its more intuitive syntax and detailed output. For users who prefer a more visual approach, system settings offer a similar interface to what Windows provides, though the layout may vary slightly depending on the distribution or version of macOS you are running.
- Open the "Terminal" application.
- To see detailed network information, including the internal IP address, type:
ip addr show. - Look for the entry labeled
inetunder the active network interface (such asen0for Wi-Fi orenp3s0for Ethernet). - To check your external IP address, type:
curl ifconfig.me.




















Understanding the Results
Once you have executed the commands or navigated through the menus, you will be presented with a string of numbers separated by dots, such as 192.168.1.100. This is your internal IP address, and it will almost always fall within the 192.168.x.x, 10.x.x.x, or 172.16.x.x ranges. These addresses are standardized for private networks and are not routable on the public internet. Conversely, the external address retrieved via the curl command will be a completely different number assigned to your router by your ISP, and it is this address that the internet uses to identify your connection.
When You Need to Troubleshoot
Knowing your IP address is only half the battle; interpreting the results is equally important. If you are unable to connect to the network, verifying that your computer has a valid internal IP address is the first diagnostic step. A missing or invalid address, often represented as 169.254.x.x or simply "no internet," indicates a problem with the DHCP configuration or the physical connection. Furthermore, checking the external address is crucial for users hosting servers or configuring port forwarding, as it confirms that the router is properly communicating with the internet. These checks are fundamental for resolving connectivity issues efficiently.