First of all, there's also the native ENUMIPINFO() function, which retrieves the defaut gateway. Secondly, please read TCP/IP Primer, Part I - IP Addresses in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.