How to determine a user’s IP address and more with JavaScript and the freegeoip.net API
Updated: this post has been updated to use freegeoip.app instead of freegeoip.net. freegeoip.net recently changed to ipstack.com and stopped offering a free HTTPS endpoint (although their HTTP endpoint is offered …