ip.enhost.uk

Your IP Address

216.73.216.30 📋
Location
Columbus, Ohio, United States
ISP
Amazon.com, Inc.
Timezone
America/New_York
Hostname
216.73.216.30
User Agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko;...
AS Number
AS16509 Amazon.com, Inc.

Other Notations

The same address written the ways a browser will still accept. The single-integer form is a long-standing way to disguise a link: http://3628718110/ goes to exactly the same place.

Decimal
3628718110
Hexadecimal
0xD849D81E
Octal
033022354036
Binary
11011000.01001001.11011000.00011110

About This Service

ip.enhost.uk is a free IP address lookup tool that displays your public IP address, hostname, and connection information. Use our simple API for scripts and applications.

Geolocation data provided by MaxMind GeoLite2.

How to Use

Get just your IP address (plain text):

https://ip.enhost.uk/?plain

Perfect for scripts where you only need the IP address.

Example:

$ curl https://ip.enhost.uk/?plain
216.73.216.30

Get detailed information via HTTP API:

https://ip.enhost.uk/

You can also use ?json parameter or Accept: application/json header.

JSON response (with Accept: application/json header):

{
    "ip": "216.73.216.30",
    "hostname": "216.73.216.30",
    "user_agent": "Mozilla/5.0...",
    "country": "United States",
    "country_code": "US",
    "region": "Ohio",
    "city": "Columbus",
    "timezone": "America/New_York",
    "isp": "Amazon.com, Inc.",
    "organization": "Amazon.com, Inc.",
    "as": "AS16509 Amazon.com, Inc."}

Using cURL (plain text):

curl https://ip.enhost.uk/?plain

Using cURL (JSON):

curl -H "Accept: application/json" https://ip.enhost.uk/

Save to variable:

MY_IP=$(curl -s https://ip.enhost.uk/?plain)
echo "My IP is: $MY_IP"

Get IP in bash script:

#!/bin/bash

# Get just the IP
MY_IP=$(curl -s https://ip.enhost.uk/?plain)
echo "Your IP: $MY_IP"

# Get JSON data
curl -s https://ip.enhost.uk/?json | jq '.'

Requires jq for JSON parsing.

Get IP in Python:

import requests

# Get plain text IP
response = requests.get('https://ip.enhost.uk/?plain')
print(f"Your IP: {response.text}")

# Get JSON data
response = requests.get('https://ip.enhost.uk/?json')
data = response.json()
print(f"IP: {data['ip']}")
print(f"Hostname: {data['hostname']}")

Get IP in JavaScript:

// Get plain text IP
fetch('https://ip.enhost.uk/?plain')
    .then(res => res.text())
    .then(ip => console.log('Your IP:', ip));

// Get JSON data
fetch('https://ip.enhost.uk/?json')
    .then(res => res.json())
    .then(data => {
        console.log('IP:', data.ip);
        console.log('Hostname:', data.hostname);
    });

Get IP in PHP:

<?php
// Get plain text IP
$ip = file_get_contents('https://ip.enhost.uk/?plain');
echo "Your IP: $ip\n";

// Get JSON data
$json = file_get_contents('https://ip.enhost.uk/?json');
$data = json_decode($json, true);
echo "IP: " . $data['ip'] . "\n";
echo "Hostname: " . $data['hostname'] . "\n";
?>
enhost NTP Time What's my IP DNS Lookup WHOIS Lookup SSL Checker Mail Checker Headers Checker