How would i go about this? I have the user enter either the IP of a machine or the hostname and I want to be able to detect the other. Tried the winsock control, anything else I can do?
Printable View
How would i go about this? I have the user enter either the IP of a machine or the hostname and I want to be able to detect the other. Tried the winsock control, anything else I can do?
Hi,
There's a file called Hosts (no extension) in the windows directory that links IP addresses to hostnames. If there is no hosts file you have to use IP addresses.
Al.
on my comp the host file has an extension of *.sam
just to let you know :)
-Lumin
Hi,
If you're using hostnames on a LAN there should be a Hosts file with no extension. Hosts.sam is the sample that shows you the format for the Hosts file. The Hosts file is a simple text file so you can edit it or create your own. Of course, don't edit the IP addresses.
Al.