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

  • Thread starter Junhua Deng (AL/EAB)
  • Start date
J

Junhua Deng (AL/EAB)

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
 
D

dcrespo

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,830
Latest member
HeleneMull

Latest Threads

Top