After reading this post here, from security.stackexchange, I was wondering what is the best way to scan all ports of a single maching using tcp scan only.
"nmap -sT -p 1-65535 localhost" is what I would try naturally but, I suppose, there is a better solution.
Also, I think that tcp scan is fastest than udp scan. In his reply the OP from that link wrote that he reached 12k ports in less than 3 secs using udp scan on nmap but with no accuracy. Is really possible the same results but using tcp scan (12k ports in 3 secs or less) and having the certain that all ports were scanned? (using a tool like Nmap or not)