Index: ncat/ncat_core.c =================================================================== --- ncat/ncat_core.c (revision 13137) +++ ncat/ncat_core.c (working copy) @@ -92,6 +92,7 @@ memset(&hints, 0, sizeof(hints)); hints.ai_family = af; + hints.ai_socktype = SOCK_DGRAM; if (o.nodns) hints.ai_flags |= AI_NUMERICHOST;