GetIPFromHostName(ByVal sHostName As String) returns empty string?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pieter Linden

    GetIPFromHostName(ByVal sHostName As String) returns empty string?

    Hi,
    I guess this question is directed at Randy Birch, but as I haven't the
    money to go help him move and clean up his house, I guess I don't have
    the right to ask him directly... so here goes.

    I'm using a chunk of his functions to resolve Hostnames into IP
    addresses and MAC addresses and the like... all of it works fine -
    except this function, and I have no idea why... Of course, you'll
    probably tell me to kindly put the light sabre down until I'm a real
    Jedi... but I don't think that's gonna happen - I'll never be a Jedi.

    when I call this:

    GetIPFromHostNa me(ByVal sHostName As String) As String

    ?GetIPFromHostN ame("Argentina" )


    ?GetHostNameFro mIP("10.0.0.83" )
    ARGENTINA

    I get no value returned.

    Am I just missing something? If so, could some kind soul clue me
    in... I'd *really* much rather spend my time doing something useful
    than walking around to each computer in the agency (all 100 or so of
    them) and writing down stupid stuff I can tell the computer to do...

    Thanks!
    Pieter
Working...