• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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