Command to check the opened/closed ports in a server

You may also like...

2 Responses

  1. Anonymous says:

    instead of nmap use command

    netstat -pant | grep :80*

    This shows the status of the port

  2. Hemanth says:

    Yes, you can use “netstat”. However, netstat has to be used to find individual port.

    eg:-
    netstat -plan |grep :80 – For apache
    netstat -plan |grep :25 – SMTP

    This will show you the individual port access enabled and listening to a particular process.

    Its better to use, nmap to see the whole list of ports and the current status.

Leave a Reply

Your email address will not be published. Required fields are marked *

6 − three =