I am trying to develop a simple android login and registration application which will fetch data from local server(for now). I am using android studio and WAMP server. I have provided the internet permission in the manifest file. I have tried the urls:
- 10.0.2.2
- 127.0.0.1
- 192.168.1.5(my IPv4 address)
- 192.168.1.5:8080
- localhost:80
Still evry time it shows
org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.5:8080 (or any of the above) refused
I have been trying this and followed every advice but the application stops unfortunately(as the emulator says).I have posted all my required java files and logcat in my previous question here: Unfortunately the application stopped working. It would be of great help if anyone guides me on this.