Your IP address is a number your router assigns to identify your computer on the network
Every device connected to your home network has an IP address — a unique number that lets your router send data to the right machine. It looks like four numbers separated by dots: something like 192.168.1.5. You need this number when you're troubleshooting network problems, setting up port forwarding, or connecting to your computer remotely. The method to find it depends on whether you use Windows, Mac, or Linux.
Your computer actually has two IP addresses: a local IP address (the one on your home network) and a public IP address (the one your internet provider assigns to your whole house). This guide covers finding your local IP address, which is what you need for home network tasks.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your local IP address listed as "IPv4 Address".
- On Mac, go to System Settings, click Network, select your connection, and look for "IP Address" in the details.
- On Linux, open a terminal and type hostname -I or ip addr to display your IP address.
- Your local IP address usually starts with 192.168 or 10.0 and changes only when you restart your router or manually assign a static IP.
- Write down your IP address if you plan to use it for port forwarding, remote access, or network troubleshooting.
Finding your IP address on Windows
The fastest way on Windows is through Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens. Type ipconfig and press Enter.
Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one you're using to connect. Under that section, find the line that says "IPv4 Address". The number next to it is your local IP address. It will look something like 192.168.1.42 or 10.0.0.15.
If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, select your connection type (Wi-Fi or Ethernet), and scroll down to see "IPv4 address" listed under your connection details.
Finding your IP address on Mac
On Mac, open System Settings and click Network in the sidebar. Select the connection you're using — either Wi-Fi or Ethernet. Your IP address appears in the details pane on the right side, labeled "IP Address".
If you're using an older version of macOS, the path is slightly different: open System Preferences instead of System Settings, then click Network. The process is otherwise the same.
You can also find it through Terminal if you prefer the command line. Open Terminal (search for it in Spotlight), type ifconfig | grep inet, and press Enter. Look for the line that starts with "inet" and is not 127.0.0.1 — that's your local IP address.
Finding your IP address on Linux
Open a terminal window. Type hostname -I and press Enter. Your IP address appears on the next line. This is the simplest method and works on most Linux distributions.
If that command doesn't work, try ip addr instead. This shows more detailed information. Look for a section labeled "inet" under your active connection — the number after "inet" is your IP address.
Some older systems may require ifconfig instead. Type it the same way, and look for "inet addr" in the output.
Understanding what your IP address tells you
Your local IP address usually starts with 192.168 or 10.0, followed by numbers your router assigns. The first three numbers (like 192.168.1) identify your network, and the last number identifies your specific device. If you have five devices on your network, they might be 192.168.1.2, 192.168.1.3, 192.168.1.4, and so on.
This address can change if you restart your router or if your router's settings change. If you need the same address to stay constant — for example, to set up port forwarding or remote access — you can assign a static IP address through your router's settings. This tells your router to always give that address to that specific device.
Why you need your IP address for home network tasks
When you're setting up port forwarding to access a security camera or game server from outside your home, you tell your router which device to send traffic to by its IP address. If that address changes, the port forwarding stops working.
If you're troubleshooting a network problem, your internet provider or a tech support person may ask for your IP address to help diagnose the issue. Knowing how to find it quickly saves time on the phone.
Remote access tools and some network printers also need your IP address to connect. Having it written down or knowing where to find it prevents delays when you need to set something up.
The difference between local and public IP addresses
Your local IP address is what devices on your home network use to talk to each other. It's private and only works inside your house. Your public IP address is what the rest of the internet sees when you browse or connect to a server. It's assigned by your internet provider and is the same for your entire household.
If you need your public IP address instead — for example, to set up remote access from outside your home — you can find it by searching "what is my IP" in any web browser. A website will display it when ready.
Frequently Asked Questions
Will my IP address change if I restart my computer?
No. Restarting your computer does not change its IP address. The address only changes if you restart your router, if your router's settings change, or if you manually assign a different one. If you need the address to stay the same permanently, assign a static IP through your router.
Can I change my IP address myself?
You can assign a static IP address through your router's settings, which prevents it from changing automatically. You cannot change your public IP address without calling your internet provider, and even then it may not change. For home network purposes, you only need to manage your local IP address.
What if I see multiple IP addresses when I run ipconfig or ifconfig?
You may see several addresses if you have multiple network connections — for example, both Wi-Fi and Ethernet plugged in. Use the address for the connection you're actually using. If you're on Wi-Fi, look under the wireless adapter section. If you're plugged in with Ethernet, use the address under the Ethernet section.
Is my IP address the same as my MAC address?
No. Your IP address is a number that identifies your device on the network and can change. Your MAC address is a permanent hardware identifier that never changes. They serve different purposes, and your router uses both to manage your network.