Results 1 to 4 of 4
Hi all,
I am getting tcp client connection refused error, when trying to establish tcp client connection from redhat linux to solaris unix. Connect system call is giving connection refused ...
- 12-29-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 2
TCP Client Connection Refused
Hi all,
I am getting tcp client connection refused error, when trying to establish tcp client connection from redhat linux to solaris unix. Connect system call is giving connection refused error, can any one help me out from this problem.
Thanks in advance!!
- 12-29-2010 #2
How are you trying to connect? With what program? From what you have posted thus far the Unix box doesn't allow that type of connection.
- 12-31-2010 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 2
TCP Client Connection Refused
Hi,
Glad to see your reply, actually I was trying to establish TCP client socket connection from Linux to Unix and TCP server is running on Unix, after investigation I figured out that Linux has little endian representation and Unix has big endian representation, in my case when I am calling connect system call and in that we are passing sockaddr structure as second argument, here we are not taking care of converting sin_addr.s_addr to network host order, rather it is remained in native byte order on linux (little endian), however TCP server running on Unix Solaris have big endian representation. Please let me know do you have any suggestion for to avoid this problem ?
Thanks,
Jafer.
- 01-01-2011 #4
As I am not a programmer I do not have that information for you.


Reply With Quote