Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Monday, August 13, 2007

How to find open ports on a Windows box

We are planning to implement a bolt-on called Kewill Flagship for advanced shipping solution in one of our instances. Kewill Flagship works on Windows platform. One of the questions asked by security was the ports which are opened by this application. I came across this link: http://www.petri.co.il/quickly_find_local_open_ports.htm

This is a cool command to find out the open ports on a windows box immediately:

C:\WINDOWS>netstat -an | find /i "listening"

Go through the above link to find more details.

3 comments:

Anonymous said...

should read:
netstat -an | find /i "listening"

Note additional "|".

Vikram Das said...

Hi Manish,

Thanks for the correction. I have corrected it in the post also.

Thanks

- Vikram

Anonymous said...

Excellent, works well. I had no idea (or forgotten) that you can do unix-like piping with dos/cmd commands.

For viewing all open ports with the process that owns the open port I'd recommend sysinternals tiny tcpview utility for windows (it's free):

http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx