Thread: System call and Connection refused

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    System call and Connection refused

    Dear All

    I'm face with a problem that I can't imagine why it is happening.
    Probably it is not a MPI problem, but I will be grateful for any help.

    Basically, I have a Client, which is a master(rank 0) of mpi application, and Server (all programming in C), which they communicate by sockets.
    When I run the both separated, I mean in different shells , works fine.

    But, when I made the Server call the Client (by the function "system()"), I received this error:
    "Connect: Connection refused"

    I'm wondering what is the different between the both running methods, permission?

    Regards

    Tiago

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Are they both, by any chance trying to open the same port?

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    2
    They are different application, there is only one Server listening in port 5000 (per example).
    I don`t think they could open the same port.
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Non-blocking socket connection problem
    By cbalu in forum Linux Programming
    Replies: 25
    Last Post: 06-03-2009, 02:15 AM
  2. reuse a socket connection
    By radeberger in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-18-2009, 11:38 AM
  3. Internet connection reliability.
    By adrianxw in forum Tech Board
    Replies: 13
    Last Post: 06-05-2003, 12:49 PM
  4. bind() system call
    By threahdead in forum C Programming
    Replies: 4
    Last Post: 01-14-2003, 09:08 AM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM