|
-
October 23rd, 1999, 02:15 PM
#1
IP address to host-name
Hi, I'm developing a application that takes a host-name and converts that address to IP-address. Does anybody know how I can do this. Thanks.
-
October 24th, 1999, 04:39 AM
#2
Re: IP address to host-name
If you know name of PC then you must modify GetIPHostName() function from
http://www.vbsquare.com/howto/getip.htm
Public Function GetIPHostName(sHostName$) As String
If Not SocketsInitialize() Then
GetIPHostName = ""
Exit Function
End If
GetIPHostName = Left$(sHostName, InStr(sHostName, Chr(0)) - 1)
SocketsCleanup
End Function
And call:
MsgBox "IP is " & GetIPHostName(Name_your_other_PC)
[email protected]
http://smalig.tripod.com
-
October 25th, 1999, 02:11 PM
#3
Re: IP address to host-name
-
October 25th, 1999, 02:17 PM
#4
Re: IP address to host-name
Thanks, by the way, good looking site...
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
|