Python’s Error 111, Connection Refused

Asked By 0 points N/A Posted on -
qa-featured

Hey, I am working on a project where I need to transfer the file via sockets. But when I compile the program, ‘error 111 connection refused’ is displayed? Any idea what could be the reason.

SHARE
Answered By 15 points N/A #305857

Python’s Error 111, Connection Refused

qa-featured

Hey there, could you just provide the source code if it does not violate the company’s policy? Based on what inputs you have provided, there might be a case where the connection you are trying to establish wasn’t open at the server’s location. And therefore, resulted in a connection refused error.

Try checking it if they are open at both the ends. Please, also see for the return values of ‘send’ command if you have used it in your program as well, just to confirm of how many bytes were being fetched from your buffer by this command. An alternative to this is using a function called ‘sendall.’ Hope it helps!

Related Questions