Base information
IP address | 3.234.221.67 | |
Version | 4 | |
Class | A |
|
Mapped from IPv4 to IPv6 | ::ffff:3.234.221.67 |
IP address | 3.234.221.67 | |
Version | 4 | |
Class | A |
|
Mapped from IPv4 to IPv6 | ::ffff:3.234.221.67 |
City | Ashburn |
|
---|---|---|
Postal Code | 20149 | |
Region subdivision | Virginia |
|
Country | United States |
|
Continent | North America |
|
GPS Coordinates | Latitude: 39.0481 Longitude: -77.4728 | |
Accuracy radius | 1000km | |
Time Zone | America/New_York | Local time: 2021-04-11 09:26:34 |
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com
AS Number | 14618 |
---|---|
AS Organization Name | AMAZON-AES |
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com
Default, human-readable format | 3.234.221.67 |
Integer format | 65 723 715 |
Minimum Integer IP value | 0 |
Maximum Integer IP value | 4 294 967 295 |
Binary representation (Base 2) | 00000011 11101010 11011101 01000011 |
Octal representation (Base 8) | 003 352 335 103 |
Decimal representation (Base 10) | 003 234 221 067 |
Hexa-decimal representation (Base 16) | 03 EA DD 43 |
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":"3.234.221.67"}}
Our API provides an easy way to retrieve your public IP address and use it in your programs. See the handy examples below.
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 | 3.234.221.67 |
GET https://api.kwelo.com/v1/network/ip-address/my?format=json | json | {"data":{"ip_address":"3.234.221.67"}} |
GET https://api.kwelo.com/v1/network/ip-address/my?format=json&callback=test | jsonp | /**/ typeof test === 'function' && test({"data":{"ip_address":"3.234.221.67"}}); |
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.
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.
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(); }
# 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;
# 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))
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}")
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}");
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 $ip = file_get_contents('https://api.kwelo.com/v1/network/ip-address/my'); echo "My public IP address is: " . $ip; ?>
<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>
< 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>
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); }); });
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);
require "net/http" ip = Net::HTTP.get(URI("https://api.kwelo.com/v1/network/ip-address/my")) puts "My public IP Address is: " + ip
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;
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) }
#!/bin/bash ip=$(curl -s https://api.kwelo.com/v1/network/ip-address/my) echo "My public IP address is: $ip"
$ip = Invoke-RestMethod -Uri 'https://api.kwelo.com/v1/network/ip-address/my?format=json' "My public IP address is: $($ip.data.ip_address)"
val addr = scala.io.Source.fromURL("https://api.kwelo.com/v1/network/ip-address/my").mkString println(s"My public IP address is: $addr")
# 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}")
;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)))
http.Fetch("https://api.kwelo.com/v1/network/ip-address/my", function(body) print("My public ip address is: " .. body ) end
(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)
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
import HttpClient var ip = newHttpClient().getContent("https://api.kwelo.com/v1/network/ip-address/my") echo("My public IP address is: ", ip)
put "My public IP address is" && url "https://api.kwelo.com/v1/network/ip-address/my"
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
Example: 156.205.253.6 or 600d:8f88:80c:6324:71f0:c05c:236b:b670
IP Address Details
All the information on any IP address
Example: 223.116.200.40 or 4d18:20b9:3074:7c8e:2985:5ab3:c49:14d7