Guide
How to find your IP address on your computer
To find your IP address on a Windows computer, open Command Prompt and type ipconfig: the IPv4 Address line, such as 192.168.1.20, is your computer's address on your network. Your public IP address, the one websites see, is different; our What's my IP tool shows it.
Below: both addresses on Windows, Mac and Linux, what the difference is, and how to find your router's address.
- Windows, Mac and Linux
- Private and public IP
- Your router's address
Updated · Steps for Windows, Mac and Linux
Private IP and public IP: what's the difference?
- Private (local) IP address: your computer's address inside your home or office network, given out by the router. It usually starts with 192.168., 10. or 172.16. to 172.31. Other devices on the same network use it to reach your computer.
- Public IP address: the address your whole network has on the internet, shared by every device behind the router. It's what websites and servers see. Your internet provider assigns it, and on most home connections it changes now and then.
How to find your IP address on Windows 11 and 10
Step 1: Open Command Prompt
Click Start, type cmd and press Enter.
Step 2: Run ipconfig
ipconfig
Under your Wi-Fi or Ethernet adapter, IPv4 Address is your private IP address and Default Gateway is your router.
ipconfig /alladds more, such as the network card's physical (MAC) address.Step 3: Or look in Settings
The IPv4 address is also near the bottom of your connection's properties. Open Settings, Network & internet, then Wi-Fi or Ethernet, and your connection.
Step 4: Find your public IP address
Open What's my IP in a browser on that computer. It shows your public address (IPv4 or IPv6) the way websites see it.
How to find your IP address on a Mac or Linux
Mac
Open System Settings, Network, choose Wi-Fi or Ethernet, then Details and TCP/IP. Or in Terminal (en0 is usually Wi-Fi):
ipconfig getifaddr en0
Linux
In a terminal, either of these shows your private address; the second also shows which network card has it:
hostname -I ip -4 addr show
Desktop Linux also shows it under Settings, Network, in the connection's details.
How to find your router's IP address and log in to it
Your router's address is the Default Gateway from ipconfig on Windows, or ip route | grep default on Linux. It's often 192.168.0.1 or 192.168.1.1. Type it into a browser's address bar to open the router's settings, and sign in with the user name and password printed on the router's label, unless you changed them. That's where you'll find port forwarding and the list of connected devices.
Change the default router password
When you need each address
- Private IP: connecting between devices on the same network, such as a shared folder (transfer files from one PC to another), a printer or Remote Desktop at home.
- Public IP: reaching your network from outside, for example through a forwarded port. To test one, see how to check if a port is open.
- Both change: give a device a fixed private address with a reservation in the router, and expect the public one to change unless your provider sells a static IP.
Reach your PC without knowing its IP address
To use your PC from somewhere else, you don't need either address with RemoteAccessApp. Each PC shows up by name in your account, and the connection goes out from the PC to our relay, so a changing public address or a router you can't configure doesn't matter. See how to access your PC remotely for free.
Questions, answered
Related
- Check if a port is openSee what's listening, test a port from your network and from the internet, how port forwarding works, and why a port shows closed.Read the guide
- Check ping and latencyRun and read a ping test, find where delay is added with tracert and pathping, what a good ping is, and a latency test in your browser.Read the guide
- No port forwardingHow to reach a PC behind a router without opening ports, and why it's safer.Read the guide
- Transfer files PC to PCThe ways to move files between Windows PCs, side by side, on the same network or far apart, and what to move to a new PC.Read the guide
- Access your PC remotelyRemote access setup for your own Windows or Linux PC, step by step, and how to reach it from anywhere for free.Read the guide
- CGNAT, 4G/5G and StarlinkWhy port forwarding fails on shared internet addresses, how to check, and how a relay gets around it.Read the guide
