The fastest way to find your IP address
Your IP address is a number that identifies your computer on the internet — like a mailing address for data. Windows and Mac both show it in seconds through built-in tools. On Windows, open Command Prompt and type ipconfig. On Mac, go to System Settings > Network and click your active connection. Both methods show your local IP (the one inside your home network) and your public IP (the one the outside internet sees).
Most people need their local IP when they are setting up a printer, router, or security camera on their home network. You need your public IP less often — mainly to troubleshoot internet problems or check if your location is being blocked by a website. The two numbers are different, and knowing which one you need saves time.
Key Takeaways
- Windows users can find their local IP by opening Command Prompt and typing ipconfig, then looking for the line labeled "IPv4 Address".
- Mac users can find their local IP through System Settings > Network, selecting their active connection, and reading the IP address field.
- Your public IP (the one the internet sees) can be found by searching "what is my IP" in any browser or visiting a site like whatismyipaddress.com.
- Local IP addresses usually start with 192.168 or 10.0 and stay the same on your home network; public IPs change when your internet provider assigns a new one.
Finding your local IP on Windows
Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. Type ipconfig and press Enter. A list of network information appears. Look for the section labeled with your network name (usually "Ethernet" if you are wired, or "Wireless LAN adapter" if you are on WiFi). The line that says "IPv4 Address" is your local IP — it will look like 192.168.1.100 or similar.
If you have multiple network adapters listed, find the one that shows "Connected" or has an actual IP address (not blank). Write down the IPv4 Address number if you need it for setup. The other numbers on the screen (Subnet Mask, Default Gateway) are less important for most home tasks.
If you prefer not to use Command Prompt, right-click the WiFi or network icon in your system tray (bottom right corner), select "Open Network & Internet settings", click "Advanced network options", then "More network adapter options". Double-click your active connection and look for the IPv4 Address field. This method takes longer but shows the same information.
Finding your local IP on Mac
Click the Apple menu in the top left, select "System Settings" (or "System Preferences" on older versions), then click "Network" in the sidebar. Select the network you are currently using — usually "WiFi" or "Ethernet". Your local IP address appears in the main panel next to "IP Address". It will look like 192.168.1.50 or 10.0.0.25.
If you are connected to WiFi, you can also click the WiFi icon in the menu bar at the top, hold Option, and click your network name. A small window shows your IP address and other network details. This is the fastest method if you only need the number quickly.
Finding your public IP address
Your public IP is what websites and online services see when you connect to them. To find it, open any web browser and search for "what is my IP" or "my public IP". Google will show your public IP at the top of the results page. You can also visit websites like whatismyipaddress.com or ipchicken.com, which display your public IP when ready.
Your public IP comes from your internet service provider and changes periodically — sometimes weekly, sometimes monthly, depending on your provider and whether you restart your modem. Unlike your local IP, you cannot change your public IP yourself. If a website is blocking your location or access, your public IP is usually what is being blocked.
Why you need each type of IP address
Use your local IP when you are setting up devices on your home network: connecting a printer to WiFi, logging into your router's settings, accessing a security camera, or troubleshooting why a device is not connecting. Your router assigns local IPs automatically, and they stay the same as long as the device stays on your network. Local IPs are safe to share with people on your home network.
Use your public IP when you are troubleshooting internet problems with your provider, checking if your location is being blocked by a website, or setting up remote access to your computer from outside your home. Your public IP changes over time and is visible to every website you visit, so it is less stable for setup tasks. Do not share your public IP with strangers.
What to do if your IP address keeps changing
Your local IP can change if your router restarts or if you disconnect and reconnect to WiFi. If you need a device to stay at the same local IP (like a printer), you can assign it a static IP through your router settings. Log into your router (usually 192.168.1.1 or 192.168.0.1 in your browser), find the DHCP or IP settings, and reserve an address for that device. The exact steps vary by router brand, so check your router's manual or support page.
Your public IP changes when your internet provider reassigns it, which happens automatically and is normal. If you need a stable public IP for remote access or business purposes, contact your internet provider about a static public IP — this usually costs extra per month.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your IP address is a number that changes based on your network (like 192.168.1.100). Your MAC address is a permanent identifier built into your network card (like 00:1A:2B:3C:4D:5E). They serve different purposes — IP is for routing data across networks, MAC is for identifying devices on your local network.
Can someone hack me if they know my IP address?
Your public IP alone is not enough to hack your computer. Hackers need additional information like open ports, software vulnerabilities, or weak passwords. Sharing your public IP is generally safe, but do not share your local IP with people outside your home network, as it can be used to target devices on your WiFi.
Why does my IP address show a different location than where I actually am?
IP location databases are not always accurate, especially for home internet. Your public IP is assigned by your internet provider, which may be located in a different city or state than you. Websites use these databases to estimate location, but they are often off by miles or more.
What if I cannot find my IP address using these methods?
Make sure you are connected to the network you are checking. On Windows, open Command Prompt as administrator (right-click and select "Run as administrator") before typing ipconfig. On Mac, confirm you are in System Settings > Network and that your connection shows "Connected". If the address still does not appear, restart your computer and try again.