Socket error 10022 (WSAEINVAL)

Return to Introduction  Previous page  Next page

Message

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

Description

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 "128.228.1.20". To make this address easier to remember, the IP address may be registered and assigned a DNS name. For example, acmecomputer.com. When someone tries to connect to acmecomputer.com a DNS server on the Internet translates that to 128.228.1.20. In this example, either acmecomputer.com or 128.228.1.20 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

c:\windows\system32\drivers\etc\hosts

Windows 2000

c:\winnt\system32\drivers\etc\hosts

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

192.168.1.5 hostname

Where:
 
hostname is the hostname from the error message.
192.168.1.5 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.