Your local IP address is the number your router assigns to your device on your home network
Your local IP address is a four-part number like 192.168.1.5 or 10.0.0.12 that identifies your device only within your home network. It is different from your public IP address, which your internet service provider assigns and which the outside internet sees. You need your local IP address to access your router's settings, troubleshoot network problems, or set up port forwarding for gaming or remote access.
Finding it takes less than a minute on any device. The steps differ slightly between Windows, Mac, and Linux, but all three methods are straightforward and require no special software.
Key Takeaways
- Your local IP address is assigned by your router and only works within your home network, not on the internet.
- On Windows, open Command Prompt and type ipconfig to see your local IP listed as "IPv4 Address".
- On Mac, go to System Settings, click Network, select your connection, and read the IP address shown in the details pane.
- On Linux, open a terminal and type hostname -I or ip addr to display your local IP.
- Your local IP usually starts with 192.168 or 10.0, and you will need it to log into your router or diagnose connection issues.
Finding your local IP on Windows
Open the Start menu and type cmd into the search box. Click Command Prompt when it appears. In the black window that opens, type ipconfig and press Enter.
Look for the section labeled with your network connection name — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on Wi-Fi. Find the line that says "IPv4 Address". The number next to it is your local IP address. It will look something like 192.168.1.100 or 10.0.0.50.
If you see multiple network adapters listed, find the one that shows an IPv4 address and is not labeled as "Disconnected". That is the connection your device is currently using.
Finding your local IP on Mac
Click the Apple menu in the top-left corner and select System Settings. Click Network in the left sidebar. On the right side, you will see your active connection — either "Wi-Fi" or "Ethernet" depending on how you are connected.
Click the connection name to expand its details. Look for the line labeled "IP Address". The number shown there is your local IP. It will typically start with 192.168 or 10.0.
If you do not see the details pane, make sure the connection is selected (highlighted in blue) and look for an "Advanced" or "Details" button to expand the information.
Finding your local IP on Linux
Open a terminal window. Type hostname -I and press Enter. Your local IP address will appear on the next line. This is the fastest method and works on nearly all Linux distributions.
If that command does not work, try ip addr instead. Look through the output for a line that starts with "inet" followed by a number. The number that appears after "inet" and before the forward slash is your local IP address. Ignore any lines that show "127.0.0.1" — that is your computer talking to itself, not your network address.
What to do once you have your local IP
Your local IP address is most useful for accessing your router's settings page. Open a web browser and type your local IP address into the address bar, then press Enter. You should see a login page for your router. The default username is often "admin" and the password is often "admin" or "password", though this varies by router model — check the sticker on the back of your router or your router's manual.
You also need your local IP if you are troubleshooting network problems. When your internet service provider or router manufacturer asks for your device's IP address, give them the local IP, not your public IP. It helps them understand where the problem is occurring within your network.
If you are setting up port forwarding for online gaming or remote access, you will enter your local IP into the port forwarding rules in your router settings. This tells your router to send incoming traffic on a specific port to that device.
Why your local IP might change
Your router assigns local IP addresses automatically using a system called DHCP. Most home routers are set to reassign addresses every time a device reconnects or after a set period of time — often 24 hours. This means your device might have a different local IP address tomorrow than it has today.
If you need the same local IP address to stay constant — for example, if you are setting up port forwarding or running a home server — you can assign a static local IP address in your router settings. This tells your router to always give that device the same address. The process varies by router, but it is usually found under a section called "DHCP Settings" or "Reserved IP Addresses" in your router's settings page.
Frequently Asked Questions
Is my local IP address the same as my public IP address?
No. Your local IP is assigned by your router and only works within your home network. Your public IP is assigned by your internet service provider and is what websites see when you visit them. You can find your public IP by searching "what is my IP" in any search engine.
Why does my local IP address keep changing?
Your router uses DHCP to assign addresses automatically, and it typically reassigns them every 24 hours or when a device reconnects. If you need a permanent address for a device, you can set a static IP in your router settings under DHCP or Reserved IP options.
Can I use my local IP address to access my computer from outside my home?
No. Local IP addresses only work within your home network. To access a device remotely, you would need to use your public IP address or set up a remote access service. Your local IP is not reachable from the internet.
What if ipconfig or hostname -I does not show an IP address?
This usually means your device is not connected to the network. Check that you are connected to Wi-Fi or plugged in with an Ethernet cable. If you are connected and still see no IP, restart your device and try again. If the problem persists, your router may not be assigning addresses correctly.