socket.error: (32, 'Broken pipe'): need help

Discussion in 'Python' started by Junhua Deng (AL/EAB), Oct 27, 2005.

  1. Hi,
    I have a simple server-client application with threading. It works fine when both server and client on the same machine, but I get the following error message if the server is on another machine:

    .... ...
    self.socket.send(outgoingMsg)
    socket.error: (32, 'Broken pipe')

    I do not know where to start with?

    Thanks
    Junhua
     
    Junhua Deng (AL/EAB), Oct 27, 2005
    #1
    1. Advertisements

  2. Junhua Deng (AL/EAB)

    dcrespo Guest

    When enabling the server, note that you put '' as the IP, and not
    'localhost'.

    if you put an ip: '172.16.1.2', your server will listen on that IP (if
    it's valid)
    if you put '', your server will listen on all IPs defined on that
    computer.
    of you put 'localhost', it will listen for local connections only.

    Maybe that's the problem.
     
    dcrespo, Oct 27, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Clive
    Replies:
    0
    Views:
    3,243
    Clive
    Aug 12, 2003
  2. Jeremy Jones
    Replies:
    0
    Views:
    5,974
    Jeremy Jones
    Oct 27, 2005
  3. 7stud

    subprocess -- broken pipe error

    7stud, Jul 2, 2007, in forum: Python
    Replies:
    11
    Views:
    1,512
    Steve Holden
    Jul 2, 2007
  4. Laszlo Nagy
    Replies:
    1
    Views:
    7,134
    Mark Wooding
    Jan 27, 2009
  5. Steve Holden
    Replies:
    1
    Views:
    986
  6. gb345
    Replies:
    0
    Views:
    1,565
    gb345
    Feb 3, 2010
  7. uncutstone
    Replies:
    5
    Views:
    273
    uncutstone
    May 16, 2006
  8. Sreenath k

    Error 32 - Broken Pipe . Please Help!!

    Sreenath k, Sep 4, 2012, in forum: Python
    Replies:
    5
    Views:
    714
    Mark Lawrence
    Sep 5, 2012
Loading...