Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2009
- Bangalore ,India
connection refused error 111 in TCP client server
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.
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
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!