android java volley error : I/Volley Error: java.net.ConnectException: Failed to connect to /127.0.0.1:8000
Development : Android Android Studio Java Volley
Posted by Tobirama 3 years ago
-
Tobirama
3 years ago
Assuming that you're running this code on an Android Emulator and that whatever backend service you're calling is running on localhost also, change your login address to:
//8080 being the port that localhost is assigned to - change it if needs be private static String URL_LOGIN = "http://10.0.2.2:8080/ligacao_bd/login.php";
http://10.0.2.2:xxxx is the IP that is a special alias to your host loopback interface (127.0.0.1 on your dev machine)
Reply
Similars contributions
Laravel,
Posted by Tobirama 10 months ago
Category : Development
Laravel password expired: force change password every 30 days
Java, Talend,
Posted by Maravilla 1 year ago
Category : Development
How to get lastModification of file with Talend using tFileProperties ?
Ajax, CSS, HTML, Jquery, Jquery-ui,
Posted by Tobirama 1 year ago
Category : Development
How to implement DataTable with MaterializeCss
CSS, HTML, Javascript,
Posted by Tobirama 1 year ago
Category : Development
Customer Editor for INPUT
Email, Laravel,
Posted by Tobirama 1 year ago
Category : Development
Laravel default notification email template
Laravel,
Posted by Tobirama 1 year ago
Category : Development
Laravel , How to Save User's Last Login Time and IP Address
Laravel, MYSQL,
Posted by Tobirama 1 year ago
Category : Development
Laravel Multiple Database Connection
Excel, Laravel,
Posted by Tobirama 1 year ago
Category : Development
laravel excel read file without import to database
Laravel, Package,
Posted by Tobirama 1 year ago
Category : Development
laravel composer install tools and ignore errors
Email, Laravel,
Posted by Tobirama 1 year ago
Category : Development
Send invite to Emails not registered in the system
Node.js,
Posted by Tobirama 1 year ago
Category : Development
nodejs "npm ERR! code SELF_SIGNED_CERT_IN_CHAIN"
JSON, Talend,
Posted by Maravilla 1 year ago
Category : Development
How to POST JSON with REST API in Talend Studio
SQL,
Posted by Maravilla 1 year ago
Category : Database
How to reset locks in postgresql tables
Ionic,
Posted by Louis Bertson 1 year ago
Category : Development
Update Capacitor native platforms, install Capacitor/Cordova plugins
Angular, Capacitor, Cordova,
Posted by Louis Bertson 1 year ago
Category : Development
@Ionic/Angular peer dependency on rxjs conflicts with @ionic-native/core