Method

GetIpAddress (deprecated)

ModuleNetwork
LibraryCore
Action


Gets IP addresses assigned to the machine.


Parameters(None)
Return values

IpAddress (string): The IP address of the adapter

IpVersion (string): IPv4/IPv6

MacAddress (string): Physical address. Not available on Android.

AdapterName (string): Description of the adapter the IP address is assigned to. Not available on Android.

AdapterType (string): Type of the adapter. For Windows, 'friendly' strings returned are based off IP_ADAPTER_INFO type defines. Not available on Android.

SubnetMask (string): Subnet mask for the IP address. This is only supplied for IPv4 addresses. It is implicit in an IPv6 address.. Not available on Android.

Example


Network.GetIpAddress();


Platforms
  • Windows
NotesThe method name is misleading because more than one address may be returned. It has been deprecated in 3.1. Please use GetIpAddresses instead.