any recommendations about the ip part? This is what it looks like locally
{
ipaddress: “::1”,
language: “en-US,en;q=0.8”,
software: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36”
}
and from my heroku app:
{
ipaddress: "::ffff:10.71.223.81",
language: "en-US,en;q=0.8",
software: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"
}
but when I use the example project it looks like this:
{
ipaddress: “198.184.147.58”,
language: “en-US”,
software: “Macintosh; Intel Mac OS X 10_11_6”
}
I am working form behind a firewall at a hospital (don’t worry, no one is dying!), but b/c I’m seeing a ‘normal’ IP address in one version and a weird version in my code, I’m wondering what’s up with that. I’m simply using req.ip in express to get my IP address.
Thanks again, you’re a big help…just enough info to keep me moving forward.
Not sure how much different it is than the express req.ip, but it does mention something about “using” ip4 vs using ip6…how do I decide what I’m “using”? I’ve only just learned about those tonight!