Waseem Sadiq
October 23rd, 1999, 02:15 PM
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.
|
Click to See Complete Forum and Search --> : IP address to host-name Waseem Sadiq October 23rd, 1999, 02:15 PM 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. smalig October 24th, 1999, 04:39 AM 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) smalig@hotmail.com http://smalig.tripod.com czimmerman October 25th, 1999, 02:11 PM See http://www.freevbcode.com/ShowCode.Asp?ID=199 Waseem Sadiq October 25th, 1999, 02:17 PM Thanks, by the way, good looking site... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |