Use the API
A simple public IP address API. Free, no signup, no logging.
cURL
curl https://api.cheapairflys.net/ip.ashx curl "https://api.cheapairflys.net/ip.ashx?format=json"
C#
var ip = await new HttpClient().GetStringAsync("https://api.cheapairflys.net/ip.ashx");
JavaScript
fetch("https://api.cheapairflys.net/ip.ashx?format=json")
.then(r => r.json())
.then(d => console.log(d.ip));
Python
import requests
print(requests.get("https://api.cheapairflys.net/ip.ashx").text)
PHP
echo file_get_contents("https://api.cheapairflys.net/ip.ashx");
Formats
/ip.ashx- plain text/ip.ashx?format=json-{"ip":"..."}/ip.ashx?format=jsonp&callback=myFunc- JSONP
Privacy
We do not store or log IP addresses.