Skip to main content
Skip table of contents

GetIPAddress

Purpose

Returns the IP address of your computer as a string like 192.168.1.1.  Note that if your computer has multiple network interfaces, this will return the IP address of each interface separated by a "space" character: 192.168.1.1 192.168.1.2.

If you wish to get the IP address and hostname of the machine, please see LANIP.


Parameters

None


Returns

Return value: IP address
Type: string


Example

Sample Code

VB
sub main()

	dim ipaddress

	ipaddress = hs.GetIPAddress
	hs.WriteLog "Info","The IP Address is " & ipaddress

end sub


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.