Use NI_NUMERICHOST flag for getnameinfo to avoid DNS problems