org.apache.http.conn.HttpHostConnectException: any idea?

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

org.apache.http.conn.HttpHostConnectException: any idea?

Postby rtn » Fri Sep 18, 2009 7:45 pm

Anyboady knows why am i getting this error

org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8081 refused


Please guide me

Thanks
rtn
Freshman
Freshman
 
Posts: 5
Joined: Thu Sep 17, 2009 7:24 pm

Top

Postby rtn » Fri Sep 18, 2009 7:51 pm

I have disabled the firewall just to make sure it is not causing the error,but it did not solve the problem. Any thoughts??
rtn
Freshman
Freshman
 
Posts: 5
Joined: Thu Sep 17, 2009 7:24 pm

Postby rtn » Sun Sep 20, 2009 6:31 pm

Don't worry guys, i have solved the problem myself
rtn
Freshman
Freshman
 
Posts: 5
Joined: Thu Sep 17, 2009 7:24 pm

org.apache.http.conn.HttpHostConnectException

Postby balakumar » Sun Jan 10, 2010 5:26 pm

I am getting org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused when I am trying to connect localhost. Please let me know how to resolve it.
balakumar
Freshman
Freshman
 
Posts: 2
Joined: Sun Jan 10, 2010 11:16 am

Re: org.apache.http.conn.HttpHostConnectException

Postby balakumar » Tue Jan 19, 2010 4:16 am

I have found out reason for this problem...
Andriod emulator is separate virtual machine by itself. If we provide localhost/127.0.0.1 as a hostname, then emulator will try to search url within its environment. To avoid this problem, we need to provide the ipaddress of local machine.
Pls note that machine name as a hostname will also give problem.
balakumar
Freshman
Freshman
 
Posts: 2
Joined: Sun Jan 10, 2010 11:16 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests