HttpHostConnectException: Connection refused Android

前端 未结 5 826
礼貌的吻别
礼貌的吻别 2021-02-09 14:53

I am trying to connect via HttpPost and send a username and password to a website and then receive a string from that website. I have tried various methods that have worked for

5条回答
  •  自闭症患者
    2021-02-09 15:23

    Please follow these solution may be among these one solve your issue.

    1> check your manifest file internet permission there or not.

    2> check your url with browser by rest client and pass the appropriate request.

    3> open the url in mobile like:- http://your ip address/port that's it just for checking do you have a permission or not to open this url in mobile.

提交回复
热议问题