Easily find out What is My IP Address? with our advanced IP address lookup and checker tool.
18.97.9.170
United States
US
Virginia
Ashburn
20149
America/New_York
Amazon.com, Inc.
AWS EC2 (us-east-1)
AS14618 Amazon.com, Inc.
2024-12-14 17:03:52
IPv4: Checking...
IPv6: Checking...
An IP address (Internet Protocol address) is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: it identifies the host or network interface and provides the location of the host in the network.
IP addresses can be either static or dynamic. Static IP addresses are permanently assigned to a device, while dynamic IP addresses are temporarily assigned and can change over time. Dynamic IP addresses are commonly used in residential networks, as they are more cost-effective and easier to manage.
IPv4 (Internet Protocol version 4) is the most widely used version. It consists of four number groups separated by dots. Each group is a decimal (0 to 255).
Example: 192.168.1.1
IPv6 (Internet Protocol version 6) is the latest version and was developed to address the exhaustion of IPv4 addresses. It consists of eight groups of four hexadecimal digits, separated by colons.
Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
A public IP address is assigned to every device that connects to the internet and is unique across the entire web. It identifies your device on the global internet.
Example: 172.217.17.110 (This is a hypothetical example of a public IPv4 address.)
Private IP addresses are used within a network and are not visible on the internet. They are assigned to devices within a private space, like a home or office network.
Example: 10.0.0.1 (This is a typical example of a private IPv4 address used in many home networks.)
A static IP address is a permanent address assigned to a computer by an Internet service provider (ISP). It does not change over time.
Example: 192.0.2.55 (This is an example of what a static IPv4 address might look like.)
Dynamic IP addresses are temporarily assigned to a device each time it connects to the internet. They are commonly used in residential networks.
Example: 203.0.113.45 (This is an example of a dynamic IPv4 address that might be assigned to a home user.)
To find the IP address in PHP, use the $_SERVER
global array:
$ipAddress = $_SERVER['REMOTE_ADDR'];
In Laravel, use the Request
facade to get the IP address:
$ipAddress = Request::ip();
In client-side JavaScript, you cannot directly retrieve the user's IP address due to privacy concerns. Typically, you would make an API request to a service that returns the user's IP:
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => console.log(data.ip));
In a Node.js environment, use the request object in your server-side code:
const ip = req.socket.remoteAddress;
Note: This might not work as expected behind certain proxies or load balancers.
For Python, using a third-party service is a common approach:
import requests
response = requests.get('https://api.ipify.org?format=json')
print(response.json()['ip'])
Explore our FAQ section for valuable insights and answers to the most common questions related to IP addresses, our IP Lookup Tool, and more. Gain knowledge on IP address functions, how to find or hide your IP, and the importance of understanding your IP address information.
You can check your IP address by visiting websites like myip-address.io or by simply searching "What is my IP address" on search engines like Google, which will display your IP address at the top of the search results.
Your IP address can be changed by resetting your Internet router, connecting to a different Wi-Fi network, using a VPN (Virtual Private Network), or using a proxy server. These methods alter the public IP address that is visible to websites and online services.
No, while an IP address can reveal general information like your city or country, it cannot be used to find your exact physical location. The information provided by an IP address is limited to general geographical data.
Hiding your IP address can be important for protecting your online privacy and security. You can hide your IP address using a VPN, which encrypts your internet connection and hides your online activities from ISPs and potential eavesdroppers.
Two devices can share the same public IP address if they are connected to the same network, but they will have different private IP addresses within that network.
A static IP address is a fixed address that doesn't change over time, in contrast to the more common dynamic IP addresses assigned by ISPs. To have a static IP address, you can: