You can scan port ranges by implementing a hyphen, as shown in the following example in which all ports from 80 to 89 (included) are scanned.
nc -zvn 172.67.209.252 80-89
The syntax is the same as shown previously; just add a space and the ports you want to scan, as shown in the example below in which ports 80, 22, and 53 are scanned.
nc -zvn 172.67.209.252 80 22 53
You can scan port ranges by implementing a hyphen, as shown in the following example in which all ports from 80 to 89 (included) are scanned.
nc -zvn 172.67.209.252 80-89
The syntax is the same as shown previously; just add a space and the ports you want to scan, as shown in the example below in which ports 80, 22, and 53 are scanned. nc -zvn 172.67.209.252 80 22 53