linuxfreak enlightened us with: > How about sending an ICMP echo packet to your broadcast address and > checking which hosts send a reply
Won't work on all boxes. Windows boxes ignore broadcast pings, for example. I'd go for a call to "nmap -sP" instead, and filter it's output. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? Frank Zappa -- http://mail.python.org/mailman/listinfo/python-list