Your IP address is a number your computer uses to connect to networks and the internet
Every device connected to a network has an IP address — a unique identifier that lets other computers find and communicate with it. Your computer actually has two: a local IP address (used only on your home or office network) and a public IP address (how the internet sees you). Finding either one takes less than a minute and requires no special tools.
The method depends on your operating system. Windows, Mac, and Linux each store this information in different places, but all three can show you the answer through built-in settings or a command-line tool.
Key Takeaways
- Your local IP address appears in your network settings and usually starts with 192.168 or 10.0 on home networks.
- Windows users can find it fastest by opening Settings, going to Network & Internet, and checking the Wi-Fi or Ethernet details.
- Mac users can open System Settings, click Network, select their connection, and read the IP address from the details pane.
- Linux users can open a terminal and type hostname -I to see the local address or curl ifconfig.me to see the public one.
- Your public IP address (what websites see) is different from your local one and can be found by searching "what is my IP" in any browser.
Finding your local IP address on Windows
Open the Settings app by pressing the Windows key and typing "Settings," then click the app that appears. Go to Network & Internet in the left sidebar. If you are connected by Wi-Fi, click Wi-Fi; if you are using an ethernet cable, click Ethernet.
Under the connection name, click Properties. Scroll down to the IPv4 address field — that number is your local IP address. It usually looks like 192.168.1.100 or 10.0.0.50. You will also see your subnet mask and default gateway listed below it.
If you prefer the command-line method, open Command Prompt by pressing Windows key + R, typing cmd, and pressing Enter. Type ipconfig and press Enter. Look for the line labeled IPv4 Address under your active connection — that is your local IP.
Finding your local IP address on Mac
Click the Apple menu in the top-left corner and select System Settings. Click Network in the sidebar. Select your active connection (Wi-Fi or Ethernet) from the list on the left. Your IP address appears in the details pane on the right, labeled IP Address.
The command-line method on Mac is the same as Linux: open Terminal (search for it in Spotlight by pressing Command + Space), type ifconfig, and press Enter. Look for the line starting with inet under your active connection — that is your local IP address.
Finding your local IP address on Linux
Open a terminal window. Type hostname -I and press Enter. Your local IP address will appear on the next line. This works on most Linux distributions including Ubuntu, Fedora, and Debian.
If that command does not work, try ifconfig instead. Look for the line labeled inet under your active network connection — that is your local IP address. You may need to install the net-tools package first if ifconfig is not available.
Finding your public IP address
Your public IP address is what websites and internet services see when you connect to them. It is different from your local IP and is assigned by your internet service provider. To find it, open any web browser and search for "what is my IP" — the search results will display your public address at the top.
Alternatively, visit a site like ifconfig.me or whatismyipaddress.com. These sites show your public IP instantly without requiring you to search. From the command line, you can type curl ifconfig.me on Mac or Linux to see your public IP.
Your public IP may change periodically depending on your internet service provider's settings. Most residential connections get a new public IP every few days or weeks, though some providers offer static IPs for a fee.
Why you might need to know your IP address
Knowing your local IP address is useful for troubleshooting network problems, accessing your router's settings, or connecting to other devices on your home network. You may need it to set up port forwarding, configure a printer on your network, or connect to a computer remotely.
Your public IP address matters less for daily use but becomes relevant if you are setting up remote access, running a server, or troubleshooting why a website is blocking your connection. Some services restrict access by IP address, so knowing yours helps you understand why you might be blocked or allowed.
The difference between local and public IP addresses
A local IP address is used only within your home or office network. Your router assigns it to your computer, and other devices on the same network use it to find you. These addresses follow patterns like 192.168.x.x or 10.0.x.x and are never visible to the internet.
A public IP address is assigned by your internet service provider and is how the rest of the internet identifies your connection. Websites, email servers, and online services see this address, not your local one. Your router translates between the two — it receives data meant for your public IP and forwards it to the correct local IP on your network.
This separation exists for security and efficiency. Your local network can have hundreds of devices, but only one public IP represents all of them to the outside world. If someone on the internet wants to reach you, they use your public IP; your router then decides which device on your local network should receive the message.
Frequently Asked Questions
Why does my IP address keep changing?
Your local IP address usually stays the same unless you restart your router or your device reconnects to the network. Your public IP address changes more often — most internet service providers assign new ones every few days or weeks. If you need a permanent public IP, contact your provider about a static IP option, though this typically costs extra.
Is my IP address the same on Wi-Fi and ethernet?
No. Your computer gets a different local IP address for each connection type. If you connect to Wi-Fi, your router assigns one address; if you plug in an ethernet cable, your router may assign a different one. Your public IP address stays the same regardless of which connection you use, since it comes from your internet service provider.
Can someone find my location from my IP address?
Your public IP address reveals your general location (usually your city or region) but not your exact address or home. Your internet service provider knows the precise location tied to that IP, but websites and services typically see only a city-level location. Your local IP address is never visible outside your network, so it reveals nothing to the internet.
What if I cannot find my IP address using these methods?
Make sure you are connected to the network — Wi-Fi or ethernet — before checking. If you are connected but the address does not appear, try restarting your computer or reconnecting to the network. On Windows, make sure you are looking at the correct connection type (Wi-Fi or Ethernet). If the problem persists, your network may have a configuration issue worth discussing with your internet service provider.