facebook

Child Process Connction Refused

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #299070 Reply

    Frank Lawlor
    Participant

    I have two processes with a Parent-Child relationship.
    The child communicates to the parent over a socket.
    If I say “run” for each separately from eclipse they work fine and the child can connect to the parent.
    However, if I have the parent start the child (Runtime.exec) the child always gets “Connection refused: connect” when it tries to connect to the parent.
    The parent is already initialized and has a thread doing an accept on the connection port.

    I’m running on Windows XP.

    Any idea why I get connection refused when the parent starts the child?

    Thanks,
    — Frank

    #299080

    Frank,
    Can you check if the child process is using the same port as the parent process?

    #299097

    Frank Lawlor
    Participant

    Yes, the parent passes its port number to the child. I print out the port number in both the parent and child and they match.

    #299134

    Frank,
    I don’t have visibility of your current issue.
    I would recommend you to cross post to socket programming forums.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Child Process Connction Refused

You must be logged in to post in the forum log in