What Your IP Address Is and Why You Might Need It

Your IP address is a set of numbers that identifies your computer on a network — like a mailing address for data. It looks like four numbers separated by dots: 192.168.1.5 or similar. You may need to find it to troubleshoot internet problems, set up a printer on your home network, or give it to tech support.

Every device connected to the internet or a local network has one. Your computer actually has two: a local IP address (used only on your home or office network) and a public IP address (the one the wider internet sees). Most of the time, you need the local one.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig to see your local IP address next to "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 ip addr or ifconfig to display all network addresses.
  • Your local IP address starts with 192.168 or 10.0 and is used only on your home network; your public IP is what websites see.
  • If you need your public IP, search "what is my IP" in any browser — the results show it when ready.

Finding Your IP on Windows

The fastest way on Windows is to use Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens with a blinking cursor.

Type ipconfig and press Enter. You will see a list of network information. Look for the line that says "IPv4 Address" — the number next to it is your local IP address. It usually starts with 192.168 or 10.0. Ignore the "Default Gateway" and "DNS Servers" lines unless tech support asks for them specifically.

If you prefer not to use Command Prompt, you can also go to Settings, click Network & Internet, select your connection type (Wi-Fi or Ethernet), and scroll down to find "IPv4 Address" listed there.

Finding Your IP on Mac

On Mac, the graphical method is usually easiest. Click the Apple menu in the top-left corner, then select System Settings (or System Preferences on older versions). Click Network in the left sidebar.

You will see a list of connection types — Wi-Fi, Ethernet, or others. Click the one you are currently using. A details panel opens on the right. Your local IP address appears next to "IP Address" near the top. Write it down if you need it.

If you want to use the terminal instead, press Command + Space, type terminal, and press Enter. Type ifconfig and press Enter. Look for the section labeled with your connection type (en0 for Ethernet, en1 for Wi-Fi). Your IP address is next to "inet" — skip the one that starts with 127.0.

Finding Your IP on Linux

On Linux, open a terminal. The method depends on your distribution, but usually you can right-click the desktop and select "Open Terminal" or press Ctrl + Alt + T.

Type ip addr and press Enter. You will see output for each network connection. Look for the section labeled with your connection name (often eth0 for Ethernet or wlan0 for Wi-Fi). Your local IP address is next to "inet" — it will be a number like 192.168.1.100. Ignore the line that starts with 127.0.1.1.

If ip addr does not work, try ifconfig instead. The output is formatted differently but contains the same information — look for "inet" and your connection name.

Understanding Local Versus Public IP Addresses

The address you found using the methods above is your local IP address. It only works on your home or office network. If you give it to someone outside your network, they cannot reach your computer with it.

Your public IP address is what the internet sees when you browse websites or send email. It is assigned by your internet service provider and changes periodically. To find it, open any web browser and search for "what is my IP" — the results show your public address when ready. You do not need to run any commands.

Tech support usually asks for your local IP when helping you troubleshoot your home network. They ask for your public IP only if they need to diagnose something on your internet connection itself.

Common Reasons Your IP Address Might Change

Your local IP address can change if you restart your router, if your computer goes to sleep and reconnects, or if your router's settings are configured to assign new addresses periodically. This is normal and usually not a problem — most home routers are set to keep the same address for the same device most of the time.

If you need an IP address to stay the same (for example, to set up port forwarding for a game server), you can assign a static IP in your router settings. This tells the router to always give that computer the same address. The steps vary by router model, so check your router's manual or support page if you need to do this.

What to Do If You Cannot Find Your IP Address

If the commands above do not show an address, your computer may not be connected to the network. Check that your Wi-Fi is turned on or that your Ethernet cable is plugged in. Wait a few seconds and try the command again.

If you are still stuck, restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully restart, then try the command again. If nothing appears after that, your network adapter may need a driver update — check your computer manufacturer's support page for the latest drivers.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a different identifier used only on your local network; your IP address is used for internet communication. They serve different purposes and look different — MAC addresses are usually six pairs of letters and numbers (like AA:BB:CC:DD:EE:FF), while IP addresses are four numbers separated by dots.

Can someone hack me if they know my IP address?

Knowing your public IP alone is not enough to hack you — it is similar to knowing someone's mailing address. However, it can be used as a starting point for other attacks. If you are concerned, you can use a VPN to hide your public IP, or contact your internet service provider about security options.

Why do I see multiple IP addresses when I run ipconfig or ifconfig?

You may have multiple network connections active — for example, both Wi-Fi and Ethernet, or a virtual network adapter. Look for the connection you are actually using. If you are on Wi-Fi, find the section labeled Wi-Fi or wlan0. If you are on Ethernet, find the section labeled Ethernet or eth0.

What if my IP address starts with 169.169?

That means your computer is not connected to the network properly. It is a placeholder address that appears when the connection fails. Check that your Wi-Fi is on or your cable is plugged in, then restart your router and try again.

Do I need to write down my IP address?

Usually no — you can look it up again anytime using the same steps. Write it down only if a technician asks you to or if you are setting up something that requires it, like port forwarding or a static address.