Socket error 10022 (WSAEINVAL)

Return to Introduction  Previous page  Next page


Host hostname port nnn Is Unreachable: Socket error 10022: WSAEINVAL


This error is normally caused by one of the following:

1.The hostname specified in the Host Name edit box of the Connect to Host dialog box (Host, Connect...) is not valid.
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.
2.On an intranet (internal network), you may need to make an entry in the Windows "hosts" file to equate the hostname to the IP address.
You will find the Windows hosts file here:

Windows 11/10/ 8/ 7/XP
Window Server  2022/2019/2016/2012/2008/2003


Windows 2000


This file should contain an entry that looks something like this. hostname

hostname is the hostname from the error message. is the IP address of the host on your network.

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