GetIPAddress

Syntax:

GetIPAddress (hostname)

Description:
Returns the IP address of the computer specified by hostname. Use an empty string to return the IP address of the local computer.

Parameter Description

hostname (optional) - The hostname of the computer for which to return the IP address.  If this parameter isan empty string, the IP address of the current computer is returned.

Example:

Sub Main
' Display the IP address of the current computer
MsgBox GetIPAddress ()

' Display the IP address of Yahoo!
MsgBox GetIPAddress ("www.yahoo.com")
End
Sub