Finding Your IP Address Quickly
Your computer's IP address is a set of numbers that identifies your device on a network — like a mailing address for data. Every device connected to the internet or a local network has one. You may need it to troubleshoot connection problems, set up a printer, access your computer remotely, or configure network settings.
The fastest way to find it depends on your operating system. On Windows, you can open Command Prompt and type a single command. On Mac or Linux, you open the Terminal and do the same. Both methods take less than a minute and show you both your local IP address (used on your home or office network) and your public IP address (how the internet sees you).
Key Takeaways
- Your local IP address appears when you run ipconfig on Windows or ifconfig on Mac and Linux, and it usually starts with 192.168 or 10.
- Your public IP address is what websites see when you visit them, and you can find it by searching "what is my IP" in any browser.
- The Command Prompt or Terminal method takes under one minute and shows you the exact address without leaving your computer.
- If you need your IP address for a specific task like printer setup or remote access, write it down or take a screenshot so you have it ready.
Finding Your IP Address on Windows
Open the Start menu and type Command Prompt into the search box. Click the Command Prompt app when it appears. A black window will open with a blinking cursor.
Type ipconfig and press Enter. The window will fill with network information. Look for the section labeled Ethernet adapter or Wireless LAN adapter depending on whether you are wired or on WiFi. Under that section, find the line that says IPv4 Address. The number next to it — usually something like 192.168.1.105 — is your local IP address.
If you see multiple adapters listed, look for the one that shows a real address rather than "Media disconnected". That is the network you are actually using right now.
Finding Your IP Address on Mac
Click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). Click Network in the left sidebar.
You will see a list of network connections on the left. Click the one you are using — either WiFi or Ethernet. On the right side of the window, you will see your IP address listed next to IPv4 Address. That is your local IP address.
Alternatively, you can use the Terminal method described below, which works the same way on Mac as it does on Linux.
Finding Your IP Address on Linux
Open the Terminal process. Type ifconfig and press Enter. The output will show all your network adapters and their addresses.
Look for the adapter you are using — usually eth0 for wired connections or wlan0 for WiFi. Under that section, find the line labeled inet. The number next to it is your local IP address. Ignore lines labeled inet6, which are IPv6 addresses (a different format).
If ifconfig does not work, try ip addr show instead. The output format is different but contains the same information.
Understanding Local vs. Public IP Addresses
The address you just found is your local IP address — the one your home or office network uses to talk to your computer. It is private and only works on your own network. If you give this address to someone outside your network, they cannot reach your computer.
Your public IP address is different. It is assigned by your internet service provider and is how websites identify you when you visit them. To find your public IP address, open any web browser and search for "what is my IP". The first result will show a number that looks similar to your local address but is usually different.
For most tasks — like setting up a printer or accessing a shared folder on your home network — you need your local IP address. For remote access from outside your network or troubleshooting with your internet provider, you need your public IP address.
What to Do With Your IP Address Once You Have It
Write down or screenshot your IP address so you have it ready. If you are setting up a printer, you may need to type it into your computer's printer settings. If you are troubleshooting a connection problem, you can give it to your internet provider or network administrator.
If you are setting up remote access to your computer, you will typically use your public IP address along with a port number and password. Your remote access software will tell you exactly what format it needs.
Your local IP address can change if you restart your router or if your device disconnects and reconnects to the network. If you need a permanent address for something like a printer, you can set a static IP address in your router settings, which keeps the same address assigned to that device. Your router's manual or support page will explain how to do this.
Frequently Asked Questions
Why does my IP address start with 192.168 or 10?
These ranges are reserved for private networks. Every home and office network uses addresses from these ranges, so your neighbor's computer might have the same local IP address as yours — but only on their network. Public IP addresses, assigned by your internet provider, use different ranges.
Can I change my IP address?
Your local IP address can change automatically when you restart your router. You can set it to stay the same by assigning a static IP in your router settings. Your public IP address is assigned by your internet provider and changes less often, but you can request a new one by restarting your modem.
Is it safe to share my IP address?
Sharing your local IP address is safe — it only works on your own network. Sharing your public IP address carries minor risk, as someone could use it to attempt connection attacks, but most home networks are protected by a firewall. Avoid posting it publicly online.
What if ipconfig or ifconfig shows multiple IP addresses?
You may have multiple network adapters — for example, both WiFi and Ethernet. Use the address for the adapter you are actually connected to right now. If you are on WiFi, use the address under the WiFi adapter. If you are plugged in with a cable, use the Ethernet address.
Do I need my IP address to use the internet normally?
No. Your computer and router handle IP addresses automatically. You only need to find and use your IP address for specific tasks like printer setup, remote access, or troubleshooting network problems.