Actually, the UDFs are the preferred way. MCA's code just checks whether the IP address is equal to ' 10. 33. 16. 0'. However, this would compare an IP address with a network ID and thus not work.

In order to check whether an IP address is part of a LAN/subnet you MUST compare the IP address to both the network ID AND the subnet mask/bits. This is all explained in detail int he TCP/IP primers referenced above.

MCA's code would work if you would compare the computers IP address to a specific IP.
_________________________
There are two types of vessels, submarines and targets.