TCP Window scan (-sW)

A Window scan is almost the same as an ACK scan, except that it shows open and closed ports:

  1. Use the following command to run the ACK scan:
nmap -sW x.x.x.x  

The following is a screenshot of an Nmap scan without the -sW flag:

The difference between the two commands can be seen in the following screenshot: