Results 1 to 7 of 7

Thread: Could someone please explain how winsock connects using RemoteHostName?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, ON
    Posts
    40
    Could someone please explain how winsock connects using RemoteHostName? Does is try every IP or is there an online database with that info? Also, is it quicker for connection to enter the IP number as the RemoteHostName? Are there any common problems associated with either one, please post ANY helpful reply.
    Thnx
    Captain Pinko (Ret)
    Visual Basic 6 Professional Edition
    Captain Pinko

    also:
    Turbo Pascal, Turing, QBasic

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It does a DNS lookup, then connects to the specific IP address. Most of the time, there is only a small performance penalty for a DNS lookup.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    The only time you might have a problem is if your user's DNS (Domain Name Server, it maps names to IP addresses) is down or slow. My DNS server seems to go down a few times while my internet connection stays up. I hate my provider, but its the only broadband connection I have access too.
    "People who think they know everything are a great annoyance to those of us who do."

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, ON
    Posts
    40

    What if...?

    What would happen if there is more than one computer with the same name online? how would you determine to which one you were connecting to? But you can't have two identical IP addresses can you? Wouldn't that be an advantage to using HostNames?
    Visual Basic 6 Professional Edition
    Captain Pinko

    also:
    Turbo Pascal, Turing, QBasic

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    You can't have two domain names that are the same. You don't see two yahoo.com do you?
    If you mean computer names on networks, those won't work over the internet.
    "People who think they know everything are a great annoyance to those of us who do."

  6. #6
    Guest
    I'd like to add that for a LAN, Windows looks up lmhosts.txt in the Windows directory before it tries DNS lookup to get the IP of the hostname (LAN only?), by putting in the hostnames and IPs into lmhosts.txt, it saves a considerable amount of speed in the network. I tend to really notice the difference when transferring files to a computer with and to one without a lmhosts file.

    Theres a file called lmhosts.sam in the Windows directory that is a sample file.

    Sunny

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    No, Windows looks up the hosts file, which works for any IP address. Handy for disabling adverts - set the ads.doubleclick.net address to 127.0.0.1
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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