I tried calling a GET request in java using a local link on Andriod Studio but it is giving me android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) error. However, when I try HTTPS link it works.
Here is my get request code:
Click Here to see the GET Request Code
Here is my url:
http://127.0.0.1:8000/all
New contributor
Abhinav Akula is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.