nc client outputs "Connected to IP:Port" on UDP communication when it tries to connect to the closed port
Issue
- Running
nc -u -v <IP> <Port>
to test if the destination IP and port is closed. - However, the
nc
client outputs the following messages, which it appears as though the destination port were opened. - Why does
nc
command output this message?
$ nc 10.10.10.10 XXXX -u -v
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to 10.10.10.10:XXXX. <<<---
Environment
- Red Hat Enterprise Linux 8
- nmap-7.70 (ncat version 7.70)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.