Internet Direct (Indy) Version 9.0.2 Beta
TIdNetworkCalculator.IsAddressInNetwork
Indicates if an IP address is valid for the network settings.

function IsAddressInNetwork(Address: String): Boolean;
Parameters
Address: String
IP address to be checked in "dotted-decimal" form, like 129.71.2.4.

Returns
Boolean - True when valid.

Description
IsAddressInNetwork is a Boolean function used to determine if a specific IP address is valid, based on the current network settings. NetworkAddress and NetworkMask are used to determine the current network visibility.