My Public IP Address is 54.211.135.32

Your public IP address location and detailed information

Base information

IP address 54.211.135.32
Version 4
Class A
Mask 0.0.0.0/1
Mapped from IPv4 to IPv6 ::ffff:54.211.135.32

Geo-Location

City Ashburn
Geonames ID 4744870
Postal Code 20149
Region subdivision Virginia
Geonames ID 6254928
ISO code VA
Country United States
Geonames ID 6252001
ISO code US
Continent North America
Geonames ID 6255149
ISO code NA
GPS Coordinates Latitude: 39.0481 Longitude: -77.4728
Accuracy radius 1000km
Time Zone America/New_York Local time: 2019-07-20 12:58:41

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Map

Autonomous System Information

AS Number 14618
AS Organization Name Amazon.com, Inc.

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Representations

Default, human-readable format 54.211.135.32
Integer format 919 832 352
Minimum Integer IP value 0
Maximum Integer IP value 4 294 967 295
Binary representation (Base 2) 00110110 11010011 10000111 00100000
Octal representation (Base 8) 066 323 207 040
Decimal representation (Base 10) 054 211 135 032
Hexa-decimal representation (Base 16) 36 D3 87 20

REST API

Quickstart

If you want to check out the API we provide, try out the following code:

$ curl https://api.kwelo.com/v1/network/ip-address/my?format=json
{"data":{"ip_address":"54.211.135.32"}}

Our API provides an easy way to retrieve your public IP address and use it in your programs. See the handy examples below.

Usage

Using our API is extremely simple. Make a HTTP GET request and fetch the results in raw text, JSON or JSONP format. For JSONP format, add ?callback="something" in the request URL.

Endpoint Response Type Sample Output
GET https://api.kwelo.com/v1/network/ip-address/my plain text 54.211.135.32
GET https://api.kwelo.com/v1/network/ip-address/my?format=json json {"data":{"ip_address":"54.211.135.32"}}
GET https://api.kwelo.com/v1/network/ip-address/my?format=json&callback=test jsonp /**/ typeof test === 'function' && test({"data":{"ip_address":"54.211.135.32"}});

Our commitments

  • You can use this API for free but there is a sensible rate-limiting in place, see below.
  • The service is deployed on highly available clusters of major cloud providers (AWS, GCP, etc.) which means it should always be up, no matter what.
  • This API is here to stay ! My own software depends on these services so I'll keep them running and improving for the years to come.
  • I'm a bit obsessed with quality and performance. If you see anything strange or slow, contact me.
  • You can query information about IPv4 and IPv6, both work. But currently the service will only detect your public IPv4 addresses. I'm actively looking to make it available for IPv6 too.

Rate-limiting

The requests are throttled at 1 per second which should be plenty for most use cases. If you hit the speed limit the service will return a 429 http status code.

If you need more, you can get unlimited access for a small contribution by reaching out to me at hello@kwelo.com and we'll sort things out depending on your situation and use-case.

Examples

Choose your favorite language/platform below and start creating your next amazing piece of software !

If you want to suggest another language or snippet, send me an email with it and I'll add it to the list.

Java

try (java.util.Scanner s = new java.util.Scanner(
        new java.net.URL("https://api.kwelo.com/v1/network/ip-address/my").openStream(), "UTF-8").useDelimiter("\\A")
    ) {
    System.out.println("My current IP address is " + s.next());
} catch (java.io.IOException e) {
    e.printStackTrace();
}

C++

# The code below uses curlpp, the C++ binding for libcurl. See http://www.curlpp.org/
#include <curlpp/cURLpp.hpp>
#include <curlpp/Options.hpp>

// Init libcURL

curlpp::Cleanup myCleanup;

// Send request and get a result.

std::ostringstream os;
os << curlpp::options::Url(std::string("https://api.kwelo.com/v1/network/ip-address/my"));

string publicIpAddress = os.str();
std::cout << "My current IP address is " << publicIpAddress;

Python

# The code below requires the `requests` library to be installed.
# To install the library: `pip install requests` or you can lear more about
# the Requests library here: http://docs.python-requests.org/en/latest/
from requests import get

ip = get('https://api.kwelo.com/v1/network/ip-address/my').text
print('My public IP address is: {}'.format(ip))

Visual Basic .NET

Dim httpClient As New System.Net.Http.HttpClient
Dim ip As String = Await httpClient.GetStringAsync("https://api.kwelo.com/v1/network/ip-address/my")
Console.WriteLine($"My public IP address is: {ip}")

C#

var httpClient = new HttpClient();
var ip = await httpClient.GetStringAsync("https://api.kwelo.com/v1/network/ip-address/my");
Console.WriteLine($"My public IP address is: {ip}");

C# - Another way

using System;
using System.Net;

namespace Kwelo.Example {
    class Program {
        public static void Main (string[] args) {
            WebClient webClient = new WebClient();
            string publicIp = webClient.DownloadString("https://api.kwelo.com/v1/network/ip-address/my");
            Console.WriteLine("My public IP Address is: {0}", publicIp);
        }
    }
}

PHP

<?php
$ip = file_get_contents('https://api.kwelo.com/v1/network/ip-address/my');
echo "My public IP address is: " . $ip;
?>

Javascript - Vanilla

<script type="application/javascript">
    function getPublicIP(json) {
        document.write("My public IP address is: ", json.data.ip_address);
    }
</script>
<script type="application/javascript" src="https://api.kwelo.com/v1/network/ip-address/my?format=json&callback=getPublicIP"></script>

Javascript - jQuery

< type="application/javascript">
    $(function() {
        $.getJSON("https://api.kwelo.com/v1/network/ip-address/my?format=json&callback=?",
            function(json) {
                document.write("My public IP address is: ", json.data.ip_address);
            }
        );
    });
</script>

Javascript - Node

var http = require('http');

http.get({'host': 'api.kwelo.com', 'port': 443, 'path': '/v1/network/ip-address/my'}, function(resp) {
    resp.on('data', function(ip) {
        console.log("My public IP address is: " + ip);
    });
});

Objective-C

NSURL *url = [NSURL URLWithString:@"https://api.kwelo.com/v1/network/ip-address/my"];
NSString *ipAddress = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
NSLog(@"My public IP address is: %@", ipAddress);

Ruby

require "net/http"

ip = Net::HTTP.get(URI("https://api.kwelo.com/v1/network/ip-address/my"))
puts "My public IP Address is: " + ip

Perl

use strict;
use warnings;
use LWP::UserAgent;

my $ua = new LWP::UserAgent();
my $ip = $ua->get('https://api.kwelo.com/v1/network/ip-address/my')->content;
print 'My public IP address is: '. $ip;

Go

package main

import (
    "io/ioutil"
    "net/http"
    "os"
)

func main() {
    res, _ := http.Get("hhttps://api.kwelo.com/v1/network/ip-address/my")
    ip, _ := ioutil.ReadAll(res.Body)
    os.Stdout.Write(ip)
}

Shell - Bash

#!/bin/bash

ip=$(curl -s https://api.kwelo.com/v1/network/ip-address/my)
echo "My public IP address is: $ip"

Shell - Powershell

$ip = Invoke-RestMethod -Uri 'https://api.kwelo.com/v1/network/ip-address/my?format=json'
"My public IP address is: $($ip.data.ip_address)"

Scala

val addr = scala.io.Source.fromURL("https://api.kwelo.com/v1/network/ip-address/my").mkString
println(s"My public IP address is: $addr")

Elixir

# The example below uses HTTPoiton as the http library. See https://github.com/myfreeweb/httpotion
HTTPotion.start
response = HTTPotion.get "https://api.kwelo.com/v1/network/ip-address/my"
IO.puts("My public IP address is: #{response.body}")

Lisp

;The code below uses the drakma http package. See http://www.weitz.de/drakma

(let ((stream
(drakma:http-request "https://api.kwelo.com/v1/network/ip-address/my" :want-stream t)))
(let ((public-ip (read-line stream)))
(format t "My public IP address is: ~A" public-ip)))

Lua

http.Fetch("https://api.kwelo.com/v1/network/ip-address/my", function(body) print("My public ip address is: " .. body ) end

Racket

(require net/url)

(define ip (port->string (get-pure-port (string->url "https://api.kwelo.com/v1/network/ip-address/my"))))
(printf "My public IP address is: ~a" ip)

Xojo

Dim s As New HTTPSecureSocket
Dim t As String = s.Get("https://api.kwelo.com/v1/network/ip-address/my",10)
MsgBox "My public IP Address is: " + t

nim

import HttpClient
var ip = newHttpClient().getContent("https://api.kwelo.com/v1/network/ip-address/my")
echo("My public IP address is: ", ip)

LiveCode

put "My public IP address is" && url "https://api.kwelo.com/v1/network/ip-address/my"

Other IP Address Tools

Need other information about an IP address ?

Public IP Address

Every machine on the Internet has one, find out what's yours

Locate IP Address

Where is this IP coming from ? Locate and identify website visitors by IP address

IP Address Details

All the information on any IP address