Networking guys

Posted on 2006-05-11
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

    If you mean open into your network from the Internet, go to 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

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

    Expert Comment

    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.

    LVL 27

    Expert Comment

    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.
    LVL 3

    Expert Comment

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

    Expert Comment

    by:Leon Fester
    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

    where can i download aports.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
    The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now