[Last Call] Learn how to a build a cloud-first strategyRegister Now


Networking guys

Posted on 2006-05-11
Medium Priority
Last Modified: 2013-11-15
I am just new to networking. I need to find out what ports are open and how to kill certain ports if i don't want to be there. Is there any way i can pull the report by doing query?

OS : windows XP/2003.

Question by:ittechlab
LVL 27

Accepted Solution

pseudocyber earned 80 total points
ID: 16657750
If you mean open into your network from the Internet, go to http://www.grc.com and run a Shields Up scan.

If you mean locally on the machine, then run the netstat command from a command line.  You are interested in the nestat -a command.

:\Documents and Settings\Administrator>netstat /?

isplays protocol statistics and current TCP/IP network connections.

ETSTAT [-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]

 -a            Displays all connections and listening ports.
 -e            Displays Ethernet statistics. This may be combined with the -s
 -n            Displays addresses and port numbers in numerical form.
 -o            Displays the owning process ID associated with each connection.
 -p proto      Shows connections for the protocol specified by proto; proto
               may be any of: TCP, UDP, TCPv6, or UDPv6.  If used with the -s
               option to display per-protocol statistics, proto may be any of:
               IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
 -r            Displays the routing table.
 -s            Displays per-protocol statistics.  By default, statistics are
               shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
               the -p option may be used to specify a subset of the default.
 interval      Redisplays selected statistics, pausing interval seconds
               between each display.  Press CTRL+C to stop redisplaying
               statistics.  If omitted, netstat will print the current
               configuration information once.

LVL 27

Expert Comment

ID: 16657756
- Sorry, my copy & paste didn't include the left most character.  The command is netstat, not "etstat".  :)

Expert Comment

ID: 16657792
nbtstat gives information about open ports and running services on Windows machines:


You are however even more secure when doing a portscan from another machine to your Windows machine.  A good portscanner is nmap.


When you defined which ports are open and not needed, you can dive in Configuration Panel -> Administrative Tools -> Services and stop those services and put their starting method on manual or off.

Additionally, on an XP machine you can use the built-in Windows Firewall, but many network people prefer to have dedicated hardware firewall/routers in front of any machine anyway, since you can easily define which kind of traffic is allowed or denied.

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

LVL 27

Expert Comment

ID: 16657820
Netstat:  Displays protocol statistics and current TCP/IP network connections.
Nbtstat:  Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).

Netstat gives everything.  Nbtstat only gives NetBIOS over TCP/IP connections.

Expert Comment

ID: 16657852
Hah, I mixed them up offcourse, but linked to the correct one.  Yes it is netstat.
LVL 26

Expert Comment

by:Leon Fester
ID: 16658639
Consider Aports. It's a nice little util that show realtime application ports that are open. It is also able to terminate the port sessions with the click of a button. However you will still have to close the port permanently.

Author Comment

ID: 16661193
where can i download aports.

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
"Any files you do not have backed up in at least two [other] places are files you do not care about."
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

829 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