0

I have a problem in my android app, it gives an error message saying:- error in http connection org.apache.http.conn.httphostconnectexception connection to ....://127.0.0.1 refused.

How can I use this address?

Amit Anand
  • 1,225
  • 1
  • 16
  • 40
  • 1
    make sure that you have mentioned these permissions in manifest file.. – Pragnesh Ghoda シ Sep 08 '14 at 07:01
  • Try 127.0.0.1/::1/"localhost" as shown [here](http://stackoverflow.com/a/6484290/1777090) – MysticMagicϡ Sep 08 '14 at 07:02
  • I have corrected my mainifest file but, it produces a new error with error message. "Error in http connection android.od.networkOnMainThreadException" "Error converting result java.lang.NullPointerException: lock == null" Help me more pls?? Thank you in advance for your early replay!! – Mikiyas Sep 08 '14 at 07:39
  • please update your code and logcat for which line it shows error. – Nathiya Sep 08 '14 at 07:47
  • I think this can help you :- http://stackoverflow.com/a/2301648/3837191 – Amit Anand Sep 08 '14 at 08:32

0 Answers0