use Ping() UDF -> http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000012

it deals with all the stuff you need and you don't need to re-invent the wheel. [Wink]
_________________________
!

download KiXnet