In case someone is needing this; here. These two functions use a public online API to get public IP address or local time, according to IP. Therefore, if you were using a VPN you would have perhaps a different return value. Anyways, here it is. Have fun with it. I'll be posting more API usage soon.
URLFile = "localtime"
URL = "http://worldtimeapi.org/api/ip/"
URL = URL + GetPublicIP + ".txt"
a% = FileDownload(URL, URLFile)
GetLocalTime = ""
localtime
= MID$(localtime
, 11) GetLocalTime = localtime
URLFile = "publicip"
URL = "https://api.ipify.org/"
a% = FileDownload(URL, URLFile)
GetPublicIP = ""
GetPublicIP = publicip
FileDownload = URLDownloadToFileA(0, URL, File, 0, 0)