IP Addresses (Tools/APIs)
Background Information
InterSystems IRIS® data platform always accepts IPv4 addresses and DNS forms of addressing (host names, with or without domain qualifiers). You can configure InterSystems IRIS to also accept IPv6 addresses; see IPv6 Support.
Available Tools
- %NetworkAddressOpens in a new tab class
-
Datatype class that validates IP addresses and ports in the format IP|Port. The IP address can either be an IPV4, IPV6, or DNS name.
Availability: All namespaces.
- %FunctionOpens in a new tab class
-
Provides the IPAddresses() method, which returns the IP addresses for a given host.
Availability: All namespaces.
- %SYSTEM.INetInfoOpens in a new tab class
-
Provides an interface for Internet address manipulation. These interfaces support both IPV6 and IPV4 Internet addresses. Includes the following class methods:
-
BinaryAddrToText()
-
CheckAddressExist()
-
CheckSubnetMatch()
-
GetInterfacesInfo()
-
OSsupportsIPV6()
-
And others
Availability: All namespaces.
-
Note
The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().