In net.c, there is this question about sendto(2) on a UDP port: /* TODO is there a way to see if server reply with an ICMP (port not available) ?? */ There is not. Well, there is, but it is extremely difficult and complex, taking up a whole chapter in Stevens's Unix Network Programming. Certainly it's not worth it. --jkl