Skip to content Skip to sidebar Skip to footer

Android Studio Internet Connection

I'm trying to connect to localhost on Android Studio I tried : localhost, 127.0.0.1, 10.0.2.2:8080 But I'm still getting the same response: failed to connect to /10.0.2.2 (port 80

Solution 1:

You can't connect to your localhost (127.0.0.1 or 10.0.2.2) using a real device. An easy solution is to make sure that your computer and android device are connected to the same network(WiFi / Host a hotspot) and then use the computer's IP Address to conect.


Post a Comment for "Android Studio Internet Connection"