There comes a time when you need to scan your hosts and see what services are on or what ports are listening.
Here is a quick command for scanning TCP ports with NMAP. Throw it on terminal.
nmap -oN nmap.txt -p- -sTV 188.8.131.52 184.108.40.206
-p- will scan all the known ports. T stands for TCP and V for versions.
If you want to check a particular port, then specify it with -p. For example:
nmap -oN nmap.txt -p 123 -sTV 220.127.116.11 18.104.22.168
Replace 22.214.171.124 with an actual IP or if you scan multiple hosts then just add ips like on the example above. The command above will create nmap.txt to user´s home directory and it will append the information to the file. If you run the command again, then all the content in the nmap.txt will get replaced with the new data. Continue reading