Knowing your computer’s IP address can be useful for tasks like configuring a firewall, setting up remote access, or troubleshooting network issues. There are two types of IP addresses you may want to check: local IP address (assigned by your router within your local network) and public IP address (assigned by your Internet Service Provider, visible on the internet). Here’s how to find both.
Method 1: Find Your Local IP Address #
Your local IP address is used within your home or office network. It typically looks like 192.168.x.x
or 10.0.x.x
.
For Windows Users: #
- Open the Command Prompt:
- Press
Win + R
, typecmd
, and press Enter.
- Press
- Type the following command and press Enter:bashCopy code
ipconfig
- Look for the line that says “IPv4 Address”. This is your local IP address (e.g.,
192.168.1.5
).
Tip: #
- If you’re connected via Wi-Fi, look under “Wireless LAN adapter”. For a wired connection, look under “Ethernet adapter”.
For Mac Users: #
- Click on the Apple menu and select System Preferences.
- Go to Network.
- Select your active network connection (Wi-Fi or Ethernet).
- Your local IP address will be displayed under “Status” (e.g.,
192.168.1.10
).
For Linux Users: #
- Open the Terminal.
- Type the following command and press Enter:bashCopy code
hostname -I
- The local IP address will be shown (e.g.,
192.168.0.15
).
Alternative Command: #
- You can also use
ifconfig
orip addr show
to find your local IP address.
Method 2: Find Your Public IP Address #
Your public IP address is the address assigned by your Internet Service Provider (ISP) and is visible on the internet.
Option 1: Use an Online IP Lookup Service #
- Open your web browser and go to any of the following sites:
- WhatIsMyIP.com
- IPinfo.io
- Google Search – Type “What is my IP” into the search bar.
- Your public IP address will be displayed on the website (e.g.,
203.0.113.45
).
Option 2: Use Command Prompt (Windows) #
- Open the Command Prompt (
Win + R
, typecmd
, press Enter). - Type the following command and press Enter:bashCopy code
nslookup myip.opendns.com resolver1.opendns.com
- The output will include your public IP address.
Option 3: Use Terminal (Mac/Linux) #
- Open the Terminal.
- Type the following command and press Enter:bashCopy code
curl ifconfig.me
- The public IP address will be displayed.
Method 3: Find the IP Address on Mobile Devices #
On iOS (iPhone/iPad): #
- Open the Settings app.
- Tap on Wi-Fi and select your connected network.
- Your local IP address will be listed under IP Address.
On Android: #
- Open the Settings app.
- Go to Network & Internet > Wi-Fi.
- Tap on your connected Wi-Fi network.
- Scroll down to see the IP Address.
Tip: #
- To find your public IP address on mobile, you can use a browser and visit any online IP lookup service like WhatIsMyIP.com.
Tips for Understanding IP Addresses #
- IPv4 vs. IPv6:
- An IPv4 address looks like
192.168.1.1
. - An IPv6 address looks like
2001:0db8:85a3:0000:0000:8a2e:0370:7334
. - Most home networks still use IPv4, but IPv6 is becoming more common as IPv4 addresses run out.
- An IPv4 address looks like
- Local vs. Public IP:
- Local IP: Used within your private network. It’s usually something like
192.168.x.x
or10.0.x.x
. - Public IP: Assigned by your ISP and used to identify your network on the internet.
- Local IP: Used within your private network. It’s usually something like
- Dynamic vs. Static IP:
- Dynamic IP: Changes periodically, assigned by your ISP’s DHCP server.
- Static IP: Remains the same over time, usually configured manually for specific devices or services.
Troubleshooting Tips #
- Cannot Find Local IP Address:
- Make sure your computer is connected to the network (Wi-Fi or Ethernet).
- Restart your router if the IP address isn’t showing up.
- Cannot Find Public IP Address:
- Ensure you’re connected to the internet.
- If you’re behind a VPN or proxy, it may show the IP address of the VPN server instead of your actual public IP.
- IP Address Conflict:
- If two devices on the same network have the same IP address, you may experience network issues. Restart your devices or renew the IP address using
ipconfig /renew
(Windows) orsudo dhclient -r
(Linux).
- If two devices on the same network have the same IP address, you may experience network issues. Restart your devices or renew the IP address using