nmap -p 1-65535 192.168.8.110

or

nmap -p- 192.168.8.110

In this example, we scanned all 65535 ports for our localhost computer.

Nmap is able to scan all possible ports, but you can also scan specific ports, which will report faster results. See below:

nmap -p 80,443 192.168.8.110