Socket error 10061 (WSAECONREFUSED)

Return to Introduction  Previous page  Next page


Session x (hostname:port) Socket Error 10061 (WSAECONNREFUSED).


No connection could be made because the target machine actively refused it.

This message is normally caused by one of the following:

1.The remote system rejected your attempt to connect with it, either because no server is listening on the specified port or it's unable to accept any additional connections. Verify you are using the correct port number and then contact the Network Administrator at the host computer site.
2.You have specified "localhost" as the Host Name in the Connect to Host dialog box. "localhost" is the host name of your PC. Replace localhost with the Host Name of the computer you wish to connect to.
The Host Name should be the dotted IP address or the DNS name of the host computer. Every computer on the Internet has an IP address that looks something like this "". To make this address easier to remember, the IP address may be registered and assigned a DNS name. For example, When someone tries to connect to a DNS server on the Internet translates that to In this example, either or could be used as the host name. Think of the host name as the address of the host computer. It tells TN3270 Plus where the host computer is. You need to find out what the host name or IP address is for the computer you want to connect to. Try talking to the network administrator at the host computer site if you are unsure.

TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.