Solved

Open and Closed ports on a system.

Posted on 2007-11-18
17
1,580 Views
Last Modified: 2012-06-22
Hi experts,
How can i find out open and closed ports on a particular system, i know there is a command called netstat but the output it produces does not list all open ports and closed ports.
Is there a utility to find out all open and closed ports.
Thanks in advance.
0
Comment
Question by:KASPBoodai
  • 7
  • 7
  • 3
17 Comments
 
LVL 2

Accepted Solution

by:
eulac earned 300 total points
ID: 20310743
you can use the option -a, to view all connections and listening ports.

command:
     netstat -a
0
 

Author Comment

by:KASPBoodai
ID: 20310762
 TCP   pc:2735   xyz:epmap  TIME_WAIT
 
  TCP    pc:5101   172.30.22.104:4562     ESTABLISHED

  TCP    pc:7374   pc:0  LISTENING

  UDP    pc:snmp   *:*
  UDP    pc:snmptrap  *:*
 
Can you explain the above output.
0
 
LVL 2

Expert Comment

by:eulac
ID: 20310825
explain:
        TCP   pc:2735   xyz:epmap  TIME_WAIT

        TCP   - the protocol that your PC use to access
        pc      - your computer name
        2735  - the port number you are using to access
        xyz    - the computer name you are accessing
        epmap  - the port you are accessing, there is a corresponding port number for epmap.
        TIME_WAIT - connection is already disconnected.

same explanation for other lines.
         ESTABLISHED - means your connection is ok.
         LISTENING - meaning your port is open for access by other computers.
         snmp   - there's a corresponding port number for this.

0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 5

Assisted Solution

by:rulirahmadi
rulirahmadi earned 200 total points
ID: 20310829
Windows Defender maybe?
http://www.microsoft.com/athome/security/spyware/software/default.mspx

Go to Tools > Software Explorer > Network Connected Programs.
0
 

Author Comment

by:KASPBoodai
ID: 20310847
Thanks eulac but i wanted to know what *:* stands for, the output is derived from my system and i was confused to see *.* therefore will appreciate if u can explain this.
0
 

Author Comment

by:KASPBoodai
ID: 20310852
rulirahmadi will this software list all open and closed ports i know one software port invador but am not able to locate the software on the internet.
0
 
LVL 2

Expert Comment

by:eulac
ID: 20310857
*.* means your own PC.
0
 

Author Comment

by:KASPBoodai
ID: 20310886
but then this command does not show any closed or blocked ports???
0
 
LVL 2

Expert Comment

by:eulac
ID: 20310906
closed or blocked are those who are not listed in netstat -a.

you can view all port range @:
         http://docs.hp.com/en/5990-7252/ch01s01.html
0
 

Author Comment

by:KASPBoodai
ID: 20310915
thanks for the information eulac, let me know if u know any such software which gives u a gui output and is more informative.
0
 
LVL 5

Expert Comment

by:rulirahmadi
ID: 20310921
>> will this software list all open and closed ports
AFAIK yes. FYI, Windows Defender is a free software.
0
 
LVL 2

Expert Comment

by:eulac
ID: 20310927
you may use Advanced Port Scanner which is free.

http://www.famatech.com/products/utilities/portscanner.php
0
 

Author Comment

by:KASPBoodai
ID: 20311034
ok one last question i installed the software and have ran a port test on my pc, it displayed open ports and closed ports, does the closed port mean blocked portsd or it simply means its not in use at the moment but open for future access.
0
 
LVL 2

Expert Comment

by:eulac
ID: 20311044
closed means, not in use.

you can use your firewall to check you blocked ports.
0
 

Author Comment

by:KASPBoodai
ID: 20311091
Well thanks a lot enjoy the points.
0
 
LVL 2

Expert Comment

by:eulac
ID: 20311114
thanks too...
0
 
LVL 5

Expert Comment

by:rulirahmadi
ID: 20311723
Me too, thanks too :)
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Picture size 4 37
OS Selection Menu 1 48
How does ADMT SID History work? 1 28
Troubleshooting Windows Server VM memory usage issue ? 4 51
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question