Find the answer to your Linux question:
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 ...
  1. #1
    Just 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!!

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    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.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just 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.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    As I am not a programmer I do not have that information for you.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...