How to check the ports opened on server

Home Forums Linux Questions & Answers.. Networking.. How to check the ports opened on server

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2206 Reply

    It can be done by “netstat” command as shown below:

    netstat print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

     #netstat -paunt 
    
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
    tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:20048           0.0.0.0:*               LISTEN      -                   
    tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                   
    tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -                   
    tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      -                   
      
    tcp        0      0 0.0.0.0:35357           0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:41856           0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:5672            0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      -                   
    tcp        0      0 0.0.0.0:875             0.0.0.0:*               LISTEN      -                   
    tcp        0      0 101.63.185.151:37594    68.232.44.169:80        TIME_WAIT   -                   
    tcp        0      0 101.63.185.151:40212    64.71.153.202:80        TIME_WAIT   -                   
    
    
    
Viewing 1 post (of 1 total)
Reply To: How to check the ports opened on server
Your information: