ID: q105997
In Windows NT, the HOSTS file is for TCP/IP utilities, and the LMHOSTS file is for LAN Manager NET utilities. If you cannot PING another computer (using a friendly name), check the HOSTS file. If you cannot NET VIEW a server using only the TCP/IP protocol, check the LMHOSTS file.
The HOSTS file is used when you do something with the TCP/IP utilities, such as PING, FTP, and TELNET. You can find the HOSTS file in the winnt\system32\drivers\etc directory. The format of the file is the following:
   IP Address     Friendly Name
   130.25.25.87   jsmith_nt   # Remarks are denoted with a #.
The LMHOSTS file is for LAN Manager name resolution with the TCP/IP protocol. The file is similar in format to the HOSTS file, but its function is to resolve IP addresses for a server that is not on the local subnet (the same wire). So, if you type the following
   NET VIEW \\JSMITH_NT
   IP Address     Friendly Name
   130.25.25.87   jsmith_nt
For additional information on the LMHOSTS file in Windows NT, query on the following words in the Microsoft Knowledge Base:
   lmhosts and windows and nt
Keywords          : kbnetwork
Version           : 3.1
Platform          : WINDOWSLast Reviewed: August 17, 1998