Socket Error 10061
Question / Problem
Socket Error 10061 Connection refused
Answer / Solution
No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host.
So either you tried to connect the wrong host, or the service (SMTP, POP3, IMAP) you're trying to contact isn't available. Check the destination address you are using. If you used a host name, did it resolve to the correct address? It's also possible that the remote services use a different port number.