Where to find your IP address on your computer
Your computer's IP address appears in your network settings, not in a single obvious place like your email inbox. The exact location depends on whether you use Windows, Mac, or Linux, and whether you want your local IP address (the one your home network uses) or your public IP address (the one the internet sees). Most people need their local IP address when troubleshooting home network problems or connecting devices to their router.
The fastest way on any computer is to open a terminal or command prompt and type a single command. On Windows, that's ipconfig. On Mac or Linux, it's ifconfig or ip addr. Your local IP address appears in the results within seconds. If you prefer not to use a terminal, both Windows and Mac have graphical settings menus where you can find the same information by clicking through network preferences.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your local IP address listed next to "IPv4 Address".
- On Mac, go to System Settings, click Network, select your connection, and look for the IP address field on the right side.
- On Linux, open a terminal and type ip addr or ifconfig to display your local IP address.
- Your local IP address (like 192.168.1.x) is what you need for home network troubleshooting; your public IP address is different and visible to websites you visit.
Finding your IP address on Windows
Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window appears. Type ipconfig and press Enter. Your local IP address appears next to "IPv4 Address" — it usually starts with 192.168 or 10.0. Write it down if you need it for a device or router setting.
If you prefer the graphical method, go to Settings, click Network & Internet, then select Wi-Fi or Ethernet depending on how you're connected. Click the network name you're using, and your IP address appears under "IP address" on the right side of the window. This method takes longer but shows the same information without opening a terminal.
Finding your IP address on Mac
Click the Apple menu in the top-left corner, select System Settings, then click Network on the left sidebar. Your current connection (Wi-Fi or Ethernet) appears in the list. Click it, and the IP address field shows your local IP address on the right side of the window. It usually starts with 192.168.
If you want to use the terminal instead, open Applications, go to Utilities, and double-click Terminal. Type ifconfig and press Enter. Look for the section labeled with your connection type (en0 for Ethernet, en1 for Wi-Fi). Your IP address appears next to "inet" — ignore the "inet6" line, which is for IPv6 addresses.
Finding your IP address on Linux
Open a terminal window (the method varies by desktop environment, but usually involves right-clicking the desktop or using an application menu). Type ip addr and press Enter. Your local IP address appears next to "inet" in the output. If that command doesn't work, try ifconfig instead — older Linux systems use that command.
The output shows each network connection separately. Look for the one labeled "UP" or the one you're actually using (often called eth0 for Ethernet or wlan0 for Wi-Fi). Your IP address is the number next to "inet" on that line, usually starting with 192.168 or 10.0.
The difference between local and public IP addresses
Your local IP address is what your home router assigns to your computer. It's only visible to devices on your home network and to your router. This is the address you need when setting up a printer, connecting a smart home device, or logging into your router's settings page. It usually starts with 192.168.1.x or 10.0.0.x.
Your public IP address is what websites and internet services see when you visit them. Your internet service provider assigns it to your router, and your router shares it with all your devices. To find your public IP address, search "what is my IP" in any web browser — the first result shows it. Your public IP address is different from your local IP address and changes periodically depending on your internet provider.
Why you might need your IP address
You need your local IP address when you're setting up devices on your home network. If you're connecting a printer, smart speaker, or security camera, the setup instructions often ask for your computer's IP address so the new device can find it on the network. You also need it if you're logging into your router's settings page to change your Wi-Fi password or adjust network settings.
You need your public IP address much less often. Some online games or video conferencing software ask for it, and it's useful if you're troubleshooting internet connectivity with your service provider. Most of the time, you don't need to know either address — your computer and router handle IP addresses automatically in the background.
What to do if your IP address changes
Your local IP address can change if you restart your router or if your computer reconnects to the network. If you need a stable local IP address for a device or service, you can set a static IP address in your router settings. This tells the router to always assign the same IP address to your computer. The process varies by router model, but usually involves logging into the router's settings page (often at 192.168.1.1 or 192.168.0.1) and finding the DHCP or IP reservation section.
Your public IP address changes less frequently — usually only when you restart your modem or after several weeks of continuous use. If a service requires a stable public IP address, you can contact your internet provider about a static public IP, though this usually costs extra per month.
Frequently Asked Questions
Why does my IP address start with 192.168 instead of something else?
192.168.x.x is a reserved range that routers use for local networks. Every home router uses addresses in this range or 10.0.x.x for devices on the home network. These ranges are never used on the public internet, which is why your local IP address is different from your public one.
Is it safe to share my IP address?
Your local IP address is safe to share — it only works on your home network. Your public IP address is already visible to every website you visit, so sharing it doesn't create a security risk. However, don't share your router's admin password or the IP address of your router's settings page.
Can I change my IP address myself?
You can set a static local IP address in your router settings to prevent it from changing. You cannot change your public IP address directly, but you can restart your modem to request a new one from your internet provider — it may or may not be different.
What if the ipconfig or ifconfig command doesn't show my IP address?
Make sure you're connected to the network first. If you're on Wi-Fi, check that you're connected to your network. If you're using Ethernet, make sure the cable is plugged in. Run the command again and look for the connection type you're using — sometimes multiple connections appear in the output.