In order to make a connection from a PC to the AS400, you must be able to resolve the name of the AS400 to an IP address. For example, if my AS400 name is AS400.Cook.K12.nc.us, I should be able to go to a DOS prompt on a PC and do the following:
PING AS400.COOK.K12.NC.US
If the ping is successful, I will see 4 replies. If the ping is not successful, you will see a message such as "Destination Unreachable" or "Request Timed Out".
If you are unable to obtain a successful reply, check the following items:
Try to ping the IP address of the AS400. For example:
Ping 10.xxx.xxx.xxx (put your AS400 IP address in place of the 10.xxx.xxx.xxx)
If you are unable to ping the address of the AS400, you may have either a physical connection problem or an ip address problem. Contact your PC technician
Check to make sure that an entry exists in your hosts file for the AS400. For Windows/95 and Windows/98, this file is C:\WINDOWS\HOSTS (no extension). Edit this file and add and entry for your AS400. If, for example, my AS400 name is AS400.COOK.K12.NC.US and my AS400 IP address is 10.150.1.5, then the entry should look like this:
10.150.1.15 AS400.COOK.K12.NC.US
IF you are using Windows 10, your hosts file is located in the C:\Windows\SYSTEM32\DRIVERS\ETC directory.
It's helpful to make a shortcut on the desktop to quickly edit the hosts file:
Right click on the desktop, click shortcut, new, use this as the path:
C:\Windows\System32\notepad.exe c:\windows\system32\drivers\etc\hosts
For the name, call it hosts.
To edit, right mouse click and "run as administrator"
Check to make sure that Enable DNS is selected in your network properties (Start, Settings, Control panel. CLick on the Network Icon. Find TCP/IP in the list - highlight and click on Properties. Select the DNS tab. Make sure that Enable DNS is selected
Also make sure that there is no blank line at the beginning of the hosts file. Make sure that there is a carriage return after the last entry in the file.
If you are still having problems, try deleting the hosts file and re-creating.