What command can I use to port scan UDP? I hear that UDP scanning has some specific issues, that do not apply to TCP scanning.
I tried running sudo nmap -p0-65535 -sU 192.168.1.97. But it has been running for a while now without showing any results...
Background information
I noticed that when I use nmap 192.168.0.97 to port-scan my computer, it only lists TCP ports.
For both TCP and UDP ports, I would start by asking the OS on my computer. I.e. How do I list all sockets which are open to remote machines?
But port scanning is still useful as a confirmation. Port scanning your computer from a different computer is a particularly good idea if you have set up a firewall, to confirm that the firewall is doing what you want. In contrast, ss -l and netstat -l will report listening sockets without regard to any local firewall.