Android http_get not working on Android [SOLVED]

emicarra

Member
Hello, i did this simple code to get my external ip by using http_get("ipv4bot.whatismyipaddress.com");, it works fine on Windows, but on Android it shows this error in the console:

java.io.IOException: Cleartext HTTP traffic to ipv4bot.whatismyipaddress.com not permitted

Does anyone know how to fix this? Thanks
 

FrostyCat

Redemption Seeker
Recent versions of Android stopped allowing plaintext HTTP traffic by default. Use HTTPS instead.
Code:
http_get("https://ipv4bot.whatismyipaddress.com");
 
Top