|
-
Mar 31st, 2000, 05:19 PM
#1
Thread Starter
Junior Member
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?
-
Mar 31st, 2000, 09:10 PM
#2
Hyperactive Member
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.
-
Apr 1st, 2000, 03:33 AM
#3
Addicted Member
on my comp the host file has an extension of *.sam
just to let you know 
-Lumin
-
Apr 1st, 2000, 05:48 AM
#4
Hyperactive Member
That's the sample file.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|