Already been done as BinaryIP() - converts an IP# to it's binary value adn posted in the UDF Forum. See also the TCP/IP Primer in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.