Lonk. Come on... Read CalcLogicalSubnet()

You break the address into octets (4 x 1 byte (4 sets of 8 bits))
1.2.3.4 =
1
2
3
4

Subnet mask is 255.255.255.0
255
255
255
0

Now logical bitwise operations on each octet pair
1&255 = 1
2&255 = 2
3&255 = 3
4&0 = 0

[ 24. May 2003, 00:39: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/