How to Find Your IP Address?
Last Updated :
18 Dec, 2024
Finding your IP address is a simple but also an important task for anyone using the internet. Whether you’re troubleshooting network issues, setting up a new device, or securing your online activity, knowing your IP address is a key step.
In this article, we’ll show you how to find your IP address on different devices like Windows, Mac, and Linux.
What is an IP Address?
An IP address (Internet Protocol address) is like the home address of your device on the Internet. Just as your home has an address so people can find it, every device connected to a network—like your phone, computer, or smart speaker—has an IP address so other devices can communicate with it.
To learn more about IP addresses in detail, Read our full article here.
Types of IP Address
A.) IPv4 (Internet Protocol version 4)
This widely used standard operates with a 32-bit address format. It’s represented as a set of four numbers separated by dots (e.g., 192.168.0.1
), where each number ranges from 0 to 255.
B.) IPv6 (Internet Protocol version 6)
As a newer and more advanced version, IPv6 uses a 128-bit address format, allowing for a vastly larger pool of unique addresses. Its longer structure is displayed as a series of alphanumeric segments separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334
), designed to support the increasing number of devices globally
For detailed information, refer to this article – IPv4 vs. IPv6
Public vs. Private IP Addresses
Broadly, IP addresses are classified as public and private:
- Private IP Addresses are used within local networks, such as your home Wi-Fi, and are not accessible from the internet.
- Public IP Addresses are assigned by your Internet Service Provider (ISP) and are essential for connecting devices to the internet.
Finding Your Public IP Address Using a Browser
An easy way to find your public IP address is by using a web browser. Several websites can instantly identify and display your public IP address.
You can visit these sites on any device—whether it’s your mobile or computer.
- Google Search: Simply search for "My IP" on Google, and your public IP address will appear at the top of the results.
- WhatIsMyIP: Visit WhatIsMyIP to view your public IP address.
- WhatIsMyIPAddress: Another reliable site is WhatIsMyIPAddress, which provides your public IP along with additional information
Example Result:
MY IPNote: If the snippet with your IP address doesn’t appear immediately, scroll to the bottom of the page to locate it.
How to Find Your IP Address on Windows?
Step 1 - Click Start or click in the search box and type cmd.
Step 2 - Click on the Command Prompt. In the Windows cmd type "ipconfig" and press enter.
- You can find your IP Address after ipconfig command output as respectively.
- If you’re connected to the internet by an Ethernet, then the IP Address will appear in the Ethernet adapter Ethernet Section.
- If you’re connected through Wi-Fi to the internet, then the IP Address will appear in the Wireless LAN adapter Wi-Fi section.
- If you’re connected to both networks simultaneously, then both IP addresses are displayed.
IP on WindowsHow to Find Your IP Address on Linux?
Method 1: Using the ip
Command
Step 1 - Open Linux Terminal or use (Ctrl+Alt+T).
Step 2 - Run the Command: "ip a"
This will display all network interfaces and their details. Look for the line that starts with inet
under your active network interface (such as eth0
for Ethernet or wlan0
for Wi-Fi). The IP address will be displayed next to inet
(e.g., inet 192.168.1.10/24
).
Demo Online Linux TerminalMethod 2: Using the ifconfig
Command (Older Method)
Step 1 - Open Linux Terminal.
Step 2 - Click on the Terminal, and type "ifconfig" and press Enter.
The IP Address in Linux Terminal is listed next to the eth0, wlan0 name as shown below.
IP on LinuxHow to Find Your IP Address on MacOS?
Method 1: Using System Preferences
- Step 1 - Open the Apple Menu.
- Step 2 - Open System Preferences.
- Step 3 - Click on Network Pane, and select the active network connection (Wi-Fi or Ethernet)
- Step 4 - IP address will be displayed on the right side under the Status section.
Method 2: Using Terminal
- Step 1 - Open the Terminal app by going to Applications > Utilities > Terminal.
- Step 2 - To find your local IP address, type the following command: "ifconfig"
- Step 3 - Look for the en0 (Wi-Fi) or en1 (Ethernet) section. Under this, find the line starting with inet (this is your local/Private IP address).
Example: inet 192.168.x.x
Note: To find your public IP address, you can use the following command: "curl ifconfig.me"
How to Find My IP Address on My Phone
For iPhone (iOS):
- Open Settings: Tap the Settings app on your home screen.
- Wi-Fi Settings: Tap Wi-Fi.
- Connected Network: Tap the information icon (i) next to your connected Wi-Fi network.
- IP Address: Under the "IPV4 Address" section, you'll see your IP address listed.
For Android:
- Open Settings: Tap the Settings app on your phone.
- Network & Internet: Tap Network & Internet, then select Wi-Fi.
- Connected Network: Tap your connected Wi-Fi network.
- IP Address: Scroll down to find your IP address under "Advanced" or "IP address."
If you’re using mobile data (and not Wi-Fi), your public IP address is assigned by your carrier, and it is typically the same for all devices on the network. You can find it by searching "What is my IP" in a browser, or using any IP lookup website.
Conclusion
Finding your IP address is a simple task that can be done in various ways depending on the device you're using. Whether you're on a Windows PC, Mac, or mobile device, there are quick steps to help you locate your IP address.
Understanding your IP address is essential for troubleshooting network issues, configuring devices, and ensuring secure online activities. With the right methods and tools, it's relatively easy to access and manage your IP address for a smooth and safe digital experience.
Similar Reads
How to Hide Your IP Address?
Hiding an IP address means borrowing a different IP address to mask the original one and make the identity private. We can borrow different IP addresses and stay hidden. There are several reasons behind hiding IP Addresses. A few of them are given below: To bypass any filters, bans, checklistsHide t
5 min read
How to Find Your Mac Address?
A MAC (Media Access Control) address is a unique identifier assigned to the network interface of a gadget. Whether you're troubleshooting network issues, setting up a secure connection, or filtering devices, knowing how to find your MAC address is essential. This article clarifies how to find your M
5 min read
How to Change Your IP Address?
If you've been wondering how to change your IP address on your Android device, it is very easy. Changing your IP address can help upgrade your security, access blocked websites and even troubleshoot connectivity issues. In this article, weâll jump into how you can change your IP address on Android,
6 min read
How to Find Your Default Gateway IP Address?
A default gateway is a node that enables a connection between networks in order to allow machines on other networks to communicate, In other words, the default gateway is an intermediate node between the local network and the internet. In this article, we will learn How to find the default gateway I
2 min read
How to Find Your MAC Address in Windows 11?
This post will explain how to find your MAC address in Windows 11 if you're wondering how to accomplish it. For networking purposes, your network adapter's MAC address is a unique identification that you must know. It's simple to find your MAC address in Windows 11 for troubleshooting or network set
5 min read
How to Find Your Local IP Address in Debian 11
The IP address is the specific number that identifies the devices on the network. This IP address will help the other devices to find and communicate with your device. When you connect your device to a a computer or phone to the local network such as your home and office network it immediately assig
4 min read
How to Find a Loopback Address?
In a Computer Network, the Loopback Address is an important address that is used for testing and troubleshooting the network connectivity on the local machine. this address provides a path for a computer system to transfer network packets to itself without involving any external networks. Loopback a
4 min read
Finding IP address of a URL in Java
Prerequisite: InetAddressgetByName() : Returns the InetAddress of the given host. If the host is a literal IP address, then only its validity is checked. Fetches public IP Address of the host specified. It takes the host as an argument and returns the corresponding IP address. Examples:Â Input : www
2 min read
How to Set a Static IP Address On Your Device?
A static IP address is one that does not change over time and can be assigned to a computer connected to the Internet. Every device that connects to your router receives a dynamic IP address by default. This is known as DHCP (short for Dynamic Host Control Protocol). However, there are occasions whe
2 min read
Java program to find IP address of your computer
An IP(Internet Protocol) address is an identifier assigned to each computer and another device (e.g., router, mobile, etc) connected to a TCP/IP network that is used to locate and identify the node in communication with other nodes on the network. IP addresses are usually written and displayed in hu
2 min read