const NatAPI = require('nat-api')
const client = new NatAPI()
// Get external IP
client.externalIp(function(err, ip) {
if (err) return console.log('Error', err)
console.log('External IP:', ip)
})
The obtained external IP is not a real public IP address.
You should request a website that can view the public IP address to get the real public external IP.
https://db-ip.com/
The obtained external IP is not a real public IP address.
You should request a website that can view the public IP address to get the real public external IP.
https://db-ip.com/