Finding your IP address in Windows, Mac, or Linux
Your computer's IP address is a set of numbers that identifies it on your network — something like 192.168.1.5 or 10.0.0.42. You may need it to troubleshoot a connection problem, set up a printer, or give to someone helping you remotely. The steps differ slightly depending on your operating system, but the process takes less than a minute.
On Windows 10 or 11, right-click the Start menu and select "Windows Terminal" or "Command Prompt". Type ipconfig and press Enter. Look for the line labeled "IPv4 Address" under your active network connection — that is your local IP address. It usually starts with 192.168 or 10.0.
On Mac, open System Preferences (or System Settings on newer versions), click Network, select your active connection from the left sidebar, and your IP address appears on the right side of the window. You can also open Terminal from Applications > Utilities, type ifconfig, and look for "inet" followed by a number.
On Linux, open a terminal and type ip addr show or ifconfig. Your local IP address appears next to "inet" in the output. Different distributions may display it slightly differently, but the number itself is always in the same format.
Key Takeaways
- Your local IP address is the number your router assigns to your computer and is different from your public IP address that the internet sees.
- Windows users can find it by typing ipconfig in Command Prompt or Windows Terminal and looking for "IPv4 Address".
- Mac users can find it in System Settings under Network, or by typing ifconfig in Terminal.
- Linux users can type ip addr show in a terminal to see their local IP address listed next to "inet".
The difference between local and public IP addresses
The address you find using the steps above is your local IP address — the one your router uses to send data to your computer inside your home or office. This is different from your public IP address, which is what websites and services on the internet see when you connect to them. Your public IP address belongs to your internet service provider and is shared by all devices in your home.
You need your local IP address when you are working with devices on your own network — connecting to a printer, accessing a security camera, or helping someone troubleshoot your computer remotely. You need your public IP address only if you are setting up port forwarding, checking your location, or reporting abuse to a website. Most people never need their public IP address for everyday tasks.
Why you might need your IP address
The most common reason to find your IP address is to connect a device that needs manual setup. If you have a printer that does not automatically appear in your list of available printers, you can type its IP address directly into your browser to access its settings. The same applies to security cameras, network storage devices, or smart home equipment that requires you to enter an address rather than search for it.
Another reason is troubleshooting a network problem. If your internet is slow or unstable, your internet service provider or a technical support person may ask for your IP address to check whether your connection is being throttled or whether there is a problem on their end. You may also need it if you are setting up a static IP address so that a device always gets the same number instead of a different one each time it connects.
Remote support is a third common scenario. If someone is helping you fix a computer problem, they may ask for your IP address to connect to your machine directly. Always verify the person's identity before sharing this information, and use a remote support tool that requires a separate password or access code.
Setting a static IP address so it does not change
By default, your router assigns your computer a new IP address each time it connects — usually the same one, but not may provide. If you need the address to stay the same (for example, if you are setting up port forwarding or a device that always connects to the same computer), you can assign a static IP address instead.
On Windows, open Settings, go to Network & Internet > Advanced Network Settings > More Network Options > Change Adapter Options. Right-click your active connection, select Properties, then Internet Protocol Version 4 (TCP/IPv4), and click Properties. Select "Use the following IP address" and enter a local address in the same range as your router (usually 192.168.1.X where X is a number between 2 and 254). Enter your router's address as the Default Gateway and 255.255.255.0 as the Subnet Mask. Click OK.
On Mac, open System Settings, click Network, select your connection, and click Details. Go to the TCP/IP tab, change "Configure IPv4" from Automatic to Manual, and enter an IP address in your network's range. On Linux, the process depends on your distribution and network manager, but generally involves editing your network configuration file or using your system's network settings panel to switch from DHCP to a static address.
An easier alternative is to set a DHCP reservation in your router instead. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 in a browser), find the DHCP or Connected Devices section, and tell the router to always assign the same IP address to your computer's MAC address. This way your computer still uses automatic assignment, but always gets the same number.
Finding your IP address on your phone or tablet
You may also need the IP address of a phone or tablet if you are connecting it to a printer, setting up a smart home device, or troubleshooting a network problem. On iPhone or iPad, open Settings, tap Wi-Fi, select your network, and your IP address appears under the network name. On Android, open Settings, tap About Phone (or About Tablet), then Status or Network, and look for IP Address in the list.
The process is the same as finding your computer's address — you are looking at the local IP address your router assigned to that device. The steps are faster on phones because the information is displayed directly in the settings rather than requiring a terminal command.
Troubleshooting when you cannot find your IP address
If you run ipconfig or ifconfig and see no IP address, or if it shows 169.254.X.X (a link-local address), your computer is not properly connected to the network. Check that your ethernet cable is plugged in or that you are connected to the correct Wi-Fi network. Restart your computer and your router — unplug the router for 30 seconds, plug it back in, and wait for all lights to stabilize before trying again.
If you are using a VPN or proxy, the address you see may be the one assigned by that service rather than your actual local address. Disconnect from the VPN temporarily to see your real IP address. If you are on a corporate or school network, your IT department may have restrictions that prevent you from seeing or changing your IP address — contact them before making changes.
If your computer shows an IP address but cannot reach the internet or other devices on your network, the problem is usually with your router or internet connection rather than your computer's address. Restart your router, check that other devices can connect, and contact your internet service provider if the problem persists.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your MAC address is a permanent identifier built into your network card (something like 00:1A:2B:3C:4D:5E), while your IP address is a number your router assigns and can change. Your router uses your MAC address to decide which IP address to give you. You can find your MAC address in the same place you find your IP address — in Windows it is labeled "Physical Address" in the ipconfig output.
Can someone hack me if they know my local IP address?
Your local IP address is only useful on your home network, not from the internet. Someone outside your network cannot reach your computer using your local IP address. Your public IP address is visible to websites you visit, but it only identifies your internet connection, not your specific computer. Hackers would need additional information about open ports or running services to cause problems.
Why does my IP address sometimes change?
Your router assigns IP addresses automatically using DHCP, which means the address can change when your computer reconnects to the network or when the router restarts. This usually happens every few days or weeks. If you need the address to stay the same, set a static IP address or DHCP reservation as described above.
What is the difference between 192.168 and 10.0 addresses?
Both are private IP ranges that routers can use for local networks. Most home routers use 192.168.1.X, while some use 10.0.0.X or 172.16.X.X. The range your router uses depends on its manufacturer and settings. All three ranges are reserved for private networks and cannot be reached from the internet.
Do I need to know my IP address to use the internet?
No. Your computer and router handle IP addresses automatically — you do not need to know yours to browse the web, send email, or use most applications. You only need to find it when you are troubleshooting a problem, connecting a device that requires manual setup, or helping someone support your computer remotely.