Finding your IP address depends on your operating system
Your computer's IP address is a number that identifies it on your network — like a mailing address for data. You need it to troubleshoot connection problems, set up port forwarding, or restrict which devices can access your router. The steps differ between Windows, Mac, and Linux, but all take less than a minute.
An IP address looks like four numbers separated by dots: 192.168.1.100. Your router assigns this number automatically when your computer connects, and it usually stays the same unless you restart or your router reassigns it. You have two IP addresses — one for your local network (called a private IP) and one for the internet (your public IP) — but for home network security, you almost always need the private one.
Key Takeaways
- In Windows, open Command Prompt and type ipconfig to see your IP address listed as "IPv4 Address" under your network adapter.
- On Mac, go to System Settings, click Network, select your connection, and your IP address appears in the details pane on the right.
- In Linux, open a terminal and type hostname -I or ip addr to display your IP address.
- Your private IP address (the one you need for home network setup) starts with 192.168, 10, or 172.16 and is assigned by your router.
- If you need your public IP address instead, search "what is my IP" in any browser to see the address the internet sees.
Finding your IP address in Windows
Open the Start menu and type cmd to launch Command Prompt. Type ipconfig and press Enter. Your IP address appears in the output as "IPv4 Address" — it will be a number like 192.168.1.105. Look under the network adapter you are using (Ethernet if you are plugged in, or the Wi-Fi adapter if you are wireless).
If you see multiple network adapters listed, find the one that shows an IPv4 Address starting with 192.168, 10, or 172.16. Ignore any that show 127.0.0.1 (that is your computer talking to itself) or 169.254 (that means your network connection failed). Write down the IPv4 Address — that is the number you need for your router or network troubleshooting.
Alternatively, you can find it through Settings. Go to Settings > Network & Internet > Wi-Fi (or Ethernet), click your connection name, scroll down, and your IP address appears under "IPv4 address". Both methods show the same number; Command Prompt is just faster.
Finding your IP address on Mac
Click the Apple menu and select System Settings. Click Network in the left sidebar. Select the connection you are using — Wi-Fi if you are wireless, or Ethernet if you are plugged in. Your IP address appears on the right side of the window, labeled "IP Address". It will be a four-part number like 192.168.1.50.
If you do not see the IP address when ready, make sure you have selected the correct network connection. If you are connected to Wi-Fi, the Wi-Fi option should show a green dot next to it. Click it, and the IP address displays in the details pane.
For a faster method, hold Option and click the Wi-Fi icon in the menu bar at the top of the screen. A dropdown shows your IP address under "IP Address" without opening System Settings.
Finding your IP address in 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 does not work, try ip addr instead. This shows more detail — look for the line that starts with "inet" (not "inet6") under your network adapter. The IP address is the number before the forward slash. Ignore the 127.0.0.1 entry, which is your loopback address.
If you are using a graphical desktop environment like GNOME or KDE, you can also right-click the network icon in the system tray and select connection details or settings to see your IP address displayed there.
Understanding private versus public IP addresses
Your private IP address is what you see when you follow the steps above. It only works on your home network and starts with 192.168, 10, or 172.16. This is the address you use to access your router settings, set up port forwarding, or restrict which devices can connect to your network.
Your public IP address is what websites see when you visit them. It is assigned by your internet service provider and changes periodically. If you need your public IP for troubleshooting or security reasons, search "what is my IP" in any web browser. The first result shows your public address.
For home network security, you almost always need your private IP address. Your public IP is useful mainly if you are setting up remote access or troubleshooting with your internet provider.
What to do once you have your IP address
Write down your IP address or take a screenshot. If you are setting up port forwarding to allow a specific device or service through your firewall, you will enter this address in your router settings. If you are troubleshooting a connection problem, you can ping this address from another device to confirm your computer is reachable on the network.
Keep in mind that your IP address can change if you restart your computer or your router reassigns addresses. If you need the same IP address every time, you can set a static IP in your router settings — most routers let you reserve an address for a specific device so it never changes. This is useful if you are running a home server or need consistent access to a particular computer.
If your IP address starts with 169.254 instead of 192.168 or 10, your computer is not properly connected to the network. Restart your computer and router, or check that your Wi-Fi password is correct.
Frequently Asked Questions
Why does my IP address keep changing?
Your router assigns IP addresses automatically and may reassign them when devices restart or reconnect. If you need the same address every time, log into your router and set a static IP reservation for that device. Most routers have this option in the DHCP or Local Network settings.
Is my private IP address a security risk?
No. Your private IP only works on your home network and is not visible to the internet. It is safe to share with people on your network or when troubleshooting with your router manufacturer. Never share your public IP address with strangers.
What if I see multiple IP addresses on my computer?
You may have multiple network adapters (Ethernet and Wi-Fi, for example) or virtual network connections. Use the IP address for the adapter you are actually using to connect — if you are on Wi-Fi, use the Wi-Fi adapter's address.
Can I change my IP address myself?
You can set a static IP in your router settings so your address does not change, but you cannot pick an arbitrary number. Your router assigns addresses from a specific range (usually 192.168.1.1 to 192.168.1.254). Your internet service provider controls your public IP address.
Do I need my IP address to connect to Wi-Fi?
No. Your computer automatically gets an IP address when it connects to your Wi-Fi network. You only need to know your IP address for troubleshooting, setting up port forwarding, or accessing your router settings.