IPAddressField()

Syntax

Result = IPAddressField(IPAddress, Field)
Description
Returns the given field value of the specified IP address.

Parameters

IPAddress The IP address. For IPv6, this address needs to be created with MakeIPAddress().
Field The field to return. This value can be a value between 0 and 3 (0 being the leftmost value, 3 being the rightmost) for IPv4 and 0 to 7 for IPv6.

Return value

Returns the value of the specified field, in the range 0 to 255.

Remarks

This function is especially useful with:

- IPAddressGadget()
- MakeIPAddress()

See Also

MakeIPAddress(), IPString(), IPAddressGadget()

Supported OS

All

<- HostName() - Network Index - IPString() ->