Finding your computer's IP address takes just a few seconds whether you're using Windows, macOS, or Linux. For private local network addresses, open your terminal or network settings and look for your IPv4 address, which typically starts with numbers like 192.168.x.x. For your public internet address, you can query an external lookup service directly from your browser.
Knowing how to locate your IP address is essential for tasks like setting up local file sharing, configuring a printer, troubleshooting connection drops, or setting up remote access. Different operating systems store this information in slightly different places, but the core process is straightforward once you know which commands or menus to use.
Finding Your IP Address on Windows
Windows gives you several fast ways to check your network configuration, ranging from graphical system settings to command-line tools.
Using the Command Prompt
The command prompt provides a direct text-based view of all active network adapters on your machine.
- Press the Windows key on your keyboard, type
cmd, and press Enter. - In the black command window, type
ipconfigand press Enter. - Look for the adapter you're currently using—usually listed as Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet.
- Locate the line labeled IPv4 Address. The series of numbers next to it (such as
192.168.1.50) is your computer's local IP address.
If you want to filter out extra information and view only your IPv4 address, type ipconfig | findstr /i "IPv4" instead.
Using Windows Settings
If you prefer a graphical interface rather than the command line, you can find your network details directly in the system settings menu.
- Open the Start menu and click on Settings (the gear icon).
- Navigate to Network & internet.
- Click on Wi-Fi or Ethernet, depending on how you're connected, then click on your active network name or properties.
- Scroll down to the Properties section and look for IPv4 address.
Finding Your IP Address on macOS
Apple keeps network configurations tucked away inside system settings, though power users can still pull the data instantly via the terminal.
Using System Settings
- Click the Apple icon in the top-left corner of your screen and select System Settings (or System Preferences on older macOS versions).
- Click Network in the sidebar.
- Select your active connection type, such as Wi-Fi or Ethernet, and click Details next to it.
- Your local IP address will be displayed right alongside your subnet mask and router details.
Using the Terminal
If you prefer the command line, macOS makes it easy to retrieve your local address with a single command.
- Open the Terminal app using Spotlight or by navigating to Applications > Utilities.
- Type
ipconfig getifaddr en0for Wi-Fi (oren1depending on your specific Mac hardware configuration) and press Enter. - The terminal will print your exact local IP address on the screen immediately.
Finding Your IP Address on Linux
Linux distributions rely heavily on command-line utilities to manage network interfaces, making the terminal the fastest route for most users.
- Open your terminal application.
- Type
ip addrorhostname -Iand press Enter. - Scan the output for your primary network interface (such as
eth0,enp3s0, orwlan0). - Find the
inetdesignation followed by your local IP address.
Private vs. Public IP Addresses
It's important to understand the difference between the address assigned inside your home network and the one visible to the outside internet.
- Private IP Address: Assigned by your home router via DHCP (Dynamic Host Configuration Protocol). Examples include
192.168.x.x,10.x.x.x, or172.16.x.xthrough172.31.x.x. These are only used for devices communicating within your local network. - Public IP Address: Assigned by your Internet Service Provider (ISP). This is the single address that the rest of the web sees when your router sends requests out to websites and online services.
To check your public IP address quickly, you can visit a reputable public lookup tool like Cloudflare diagnostics or search directly on IPinfo to see what your browser transmits to external servers.
Frequently Asked Questions
Why does my local IP address change occasionally?
Most home routers use dynamic assignment through DHCP, meaning your computer might be handed a slightly different IP address when it reconnects to the network or when your router reboots. If you need a fixed address for network sharing, you can assign a static IP through your router settings or operating system configuration.
Can someone find my exact home address using my IP?
An IP address can reveal the general geographic area associated with your Internet Service Provider—such as a city or region—but it cannot pinpoint your exact street address or personal identity. That level of detail requires ISP subscriber records, which are private and typically only accessible to law enforcement with a subpoena.
What is the difference between IPv4 and IPv6?
IPv4 uses 32-bit addresses formatted as four numbers separated by dots (e.g., 192.168.1.1), which limits the total number of unique addresses available globally. IPv6 uses 128-bit alphanumeric addresses written in hexadecimal (e.g., 2001:db8::), designed to accommodate the massive growth of internet-connected devices worldwide.
Do I need my IP address to connect to Wi-Fi?
No. Standard Wi-Fi connections handle address assignment automatically behind the scenes. You only typically need to look up your IP address when troubleshooting specific network errors, configuring port forwarding, or establishing direct peer-to-peer connections.