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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Junhua Deng (AL/EAB)

    #1

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

    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.sen d(outgoingMsg)
    socket.error: (32, 'Broken pipe')

    I do not know where to start with?

    Thanks
    Junhua
  • dcrespo

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

    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.

    Comment

    Working...