Dr. Tom Shinder’s Blog RSS

All Blogs  »  Dr. Tom Shinder's Blog  »  Microsoft Security Space  »  Blog article: Use Netstat to Discover Application Port Usage

Use Netstat to Discover Application Port Usage

Ever wonder what applications are either connected to the network or are trying to connect to the network? One way you can check this out without installing any additional software is to use the netstat command. To do this, open a command prompt and at the command prompt type netstat -nab What you’ll see is a comprehensive list of connections your computer is making to the network and also ports that applications have opened for either inbound or outbound connections. For example, check out the figure below:

image

This figure shows that OUTLOOK.EXE (which it Outlook 2007 on my computer) is making outbound connections from IP address 192.168.1.70 with a number of source ports (e.g., 4547, 4548, etc) to IP address 192.168.1.60 on destination port 8080. This information lets me know that Outlook is connecting to the Web Proxy listener port on my ISA firewall, and that some component in Outlook is connecting to the Internet. It could be that I’m looking at an HTML mail message, or it could be the Windows Live mail connector. In order to get information about where the connection is destined, I’d have to look at the firewall logs. But netstat does let me know that this application is trying to connect to the Internet.

Next time you’re wondering what applications on your computer are trying to connect to the network, give netstat a try. If you want to see what other options are available with netstat, just type in the command netstat /?

HTH,

Tom

Thomas W Shinder, M.D., MCSE
Sr. Consultant / Technical Writer

image
Prowess Consulting www.prowessconsulting.com

PROWESS CONSULTING | Microsoft Forefront Security Specialist
Email: tshinder@isaserver.org
MVP — Forefront Edge Security (ISA/TMG/IAG)

2 Responses to “Use Netstat to Discover Application Port Usage”

  1. Julie Says:

    January 25th, 2009 at 10:33 am

    I need to find out which ports that an application is using. By watching the user connect through the firewall it looks like several ports are being used. Through my research I have not been able to determine exactly which ports are being used for this application and therefore I have had to set a rule stating the use of ports 1-65535. Can you help….

    Thank you…..

    Julie

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 6 chars within 0..9 and A..F, and submit the form.

  

If CAPTCHA image is missing or you cannot read the characters above, please generate a


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowSecurity.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowSecurity.com member!

Discuss your security issues with thousands of other network security experts. Click here to join!

Community Area

Log in | Register

Solution Center