I've opened port 4000 on my local machine as follows:
nc -lvup 4000
and then attempted to connected to the same port as follows:
nc -vu 127.0.0.1 4000
and was able to successfully connect and send and receive text back and forth. However when I listen on the same port as shown in the first snippet and then attempt a UDP scan using
nmap -sU 127.0.0.1 -p 4000
The result is as below:
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000061s latency).
PORT STATE SERVICE
4000/udp closed icq
Shouldnt it say open since the port is clearly open as established by the first test? Please make it make sense as I'm truely stumped by this.