| IP | 216.73.216.132 |
|---|---|
| HTTP Client-IP | empty |
| HTTP X-Forwarded-For | empty |
| Country Code | US |
|---|
You can get your IP in RAW and JSON formats without any HTML or ad code. This is useful for scripts and other system purposes.
Example of getting IP in PLAIN format:
https://md5calc.com/ip.plain
Will output:
216.73.216.132
Example of getting IP in JSON format:
https://md5calc.com/ip.json
Will output:
"216.73.216.132"
For example, you can use this from the CLI to get your external IP when you are behind a NAT:
echo "My external IP:" $(curl -s https://md5calc.com/ip.plain)
Will output:
My external IP: 216.73.216.132
We have removed the CORS restriction so you can verify IP information directly in your JavaScript applications
via AJAX.
Example:
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log('Your external IP is "'+xhr.response+'"');
}
};
xhr.open('GET', 'https://md5calc.com/ip.plain', true);
xhr.send();
Will output:
Your external IP is "216.73.216.132"