GET /ip

PUBLIC

Use this api to determine your current IP Address from your scripts. Responds with current public-ip of the visitor/script

curl -s https://ip8.com/ip
echo "Current IP :" $(curl -s https://ip8.com/ip)
$.get('https://ip8.com/ip').done(ip=>{console.log(ip)}).fail(err=>{console.error(err)})
const https = require('https');

https.get('https://ip8.com/ip', (res) => {
  console.log('statusCode:', res.statusCode);
  console.log('headers:', res.headers);

  res.on('data', (ip) => {
    process.stdout.write(ip);
  });

}).on('error', (e) => {
  console.error(e);
});

From any browser just open the url https://ip8.com/ip