Results 1 to 2 of 2
Hi
I am facing connection refused error 111 in TCP client server program, in android native code which in C , but if code is in JAVA it works fine, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-24-2010 #1Just Joined!
- Join Date
- Aug 2009
- Location
- Bangalore ,India
- Posts
- 5
connection refused error 111 in TCP client server
Hi
I am facing connection refused error 111 in TCP client server program, in android native code which in C , but if code is in JAVA it works fine, but i want to continue in C only, in manifest file i have given permission and ip, port is correct .
What am doing wrong?? or is their any network setting?? am using UBUNTU 10.04
and If both client server Linux pc it works fine. only if android emulator becomes client then am getting connection refused.
pls help.
- 08-27-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,143
There can be a lot of reasons for a connection being refused, including an incorrect host and/or port. In fact, that should be the only reason this is happening to get ECONNREFUSED (error 111), that no-one is listening on the port in question. So, provide the successful Java code, and the corresponding failing C code. At this point, nothing is certain.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
