Since you're only checking for a single subnet, the IsInSubnet() should suffice. IsInIPRage is for cases where you have to check for one of many subnets. We e.g. have three separate subnets for VPN connections.
code:
$ipaddress=@IPADDRESS0
$subnet='192.168.12.0/255.255.255.0'
; or
; $subnet='192.168.12.0/24'
if IsInSubnet($ipaddress,$subnet)
; is in subnet
else
; sorry
endif



[ 25. April 2003, 15:42: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.