Your IP Address
216.73.216.82 📋
Location
Columbus, Ohio, United States
Timezone
America/New_York
Hostname
216.73.216.82
User Agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko;...

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.82

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.82",
    "hostname": "216.73.216.82",
    "user_agent": "Mozilla/5.0...",
    "country": "United States",
    "country_code": "US",
    "region": "Ohio",
    "city": "Columbus",
    "timezone": "America/New_York",
    "isp": "",
    "organization": "",
    "as": ""}

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 Headers Checker