Skip to main content

1E 23.7 (SaaS)

Network.GetIpAddress (deprecated)

Method

GetIpAddress(deprecated)

Module

Network

Library

Core

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.

AdapterName (string): Description of the adapter the IP address is assigned to.

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

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

Example

Network.GetIpAddress();

Platforms

  • Windows

Notes

The method name is misleading because more than one address may be returned.

This method has been deprecated since v3.1. Use GetIpAddresses instead.