Just doing a simple GET request to whatismyip.org, and I get a different IP everytime. If it visit the website in my browser, it’s always the same. What’s up with this? I’m just running node.js locally on my windows 7 machine. How is it possible that I’m using different IPs?
request('http://www.whatsmyip.org/', function (error, response, body) {
if (!error && response.statusCode == 200) {
res.render('index', {content:body;});
}
});
I feel like http://www.whatsmyip.org knows it’s an automated request and is trolling me. xD
It looks like the site is using JavaScript to update the span on the page, so if you’re doing a simple HTTP request then that won’t be updated to the correct value. If you go to the site with a Web browser but just view the source (not using any updated inspector) and refresh then the IP displayed appears to be random.