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.

Parameters:

Parameter

Description

Hostname (optional)

The hostname of the computer for which to return the IP address.  If this parameter is an empty string, the IP address of the current machine is returned.

 

Example:


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

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


See Also:

GetIPAddress, GetIPv4Address, GetIPv6Address, GetComputerName, GetAgentName, GetAgentID, GetProgramsDirectory, GetStartupDirectory, GetSystemDirectory