title: python multiprocessing socket.error: [Errno 111] Connection refused?
body: <p>I am doing a simple server/client connection using multiprocessing in python 2.7.<br>
  When I run the client code in a seperate python shell, the connection is successful, but when I run the application as a whole, I get "socket.error: [Errno 111] Connection refused".  </p>
  
  <p>This is the Traceback:  </p>
  
  <pre><code>Traceback (most recent call last):
    File "./kaboom", line 276, in &lt;module&gt;
      sequence.run(testEnv)
    File "/e/m/amoreau/test_edit/kaboom/src/kbmSequence.py", line 271, in run
      if testEnv.open() != SUCCESS:
    File "/e/m/amoreau/test_edit/kaboom/src/kbmTestEnv.py", line 518, in open
      queueManager = resultsClient.QueueServerClient()
    File "/e/m/amoreau/test_edit/kaboom/resultsClient.py", line 15, in QueueServerClient
      manager.connect()
    File "/usr/lib64/python2.6/multiprocessing/managers.py", line 474, in connect
      conn = Client(self._address, authkey=self._authkey)
    File "/usr/lib64/python2.6/multiprocessing/connection.py", line 143, in Client
      c = SocketClient(address)
    File "/usr/lib64/python2.6/multiprocessing/connection.py", line 263, in SocketClient
      s.connect(address)
    File "&lt;string&gt;", line 1, in connect
  socket.error: [Errno 111] Connection refused  
  </code></pre>
  
  <p>Why does this happen? I have disabled all firewalls.</p>