Results 1 to 4 of 4

Thread: How to convert between IP and hostname on a LAN

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    27
    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?

  2. #2
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    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.

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    on my comp the host file has an extension of *.sam

    just to let you know


    -Lumin

  4. #4
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    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
  •  



Click Here to Expand Forum to Full Width