Public IP Address: 3.237.29.69
Private IP Address:
Put simply: an easy way to help you or someone else find out his or her IP address. And with newer browsers, this also includes the LAN or local IP address.
For programmers or system administrators, it's a powerful API that provides a great deal more information, whether it's from the web browser, smartphone, or command line.
Our API is simple and solid:
Resource | Method | Parameters | Response encoding |
---|---|---|---|
/api/cli/ | GET | None | ASCII Text |
/api/json/ | GET | IP Address | JSON |
/api/yaml/ | GET | IP Address | YAML |
/api/xml/ | GET | IP Address | XML |
Here are just a few examples of how you could use http://pasteip.me:
Via the command line:
user@host:~) curl -s http://pasteip.me/api/cli/ && echo 384.106.158.339
Inside a shell script:
#!/bin/bash external_addr=$(curl -s http://pasteip.me/api/cli/) if [ $external_addr != '233.142.13.2' ] then run_an_exception_function $external_addr fi
Via a jQuery call:
$(document).ready( function() { $.getJSON("http://pasteip.me/api/json/" + address, function(data){ alert(data.ip); } ); });