Hello! I am working on a game and I would like to show the server location, however the script below gives me a HttpError: NetFail on line 2. Http requests are enabled for my game and I was wondering what was causing this issue as I couldn’t find anything else on the devforms about this. Thanks!
local link = "https://api4.my-ip.io/v2/ip.json" local req = game:GetService("HttpService"):GetAsync(link) local json = game:GetService("HttpService"):JSONDecode(req)
Seems to just be an issue with that specific api as it wouldn’t work for me either no matter what, but switching to a different api worked - http://ip-api.com/json/