List all ports opened in windows (netstat -nb)

Recently some of my ports always conflict with the port i want to open in window. I try to find out how can i know what programs or ports currently using in my computer? With a simple command, it will show exactly what i want to know. Please issue following command in windows command prompt.

netstat -nb

Above command will show which ports open in my computer and what program hold the port. If you want to know more detail about netstat command , please issue following command also.

netstat -?

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

Leave a Reply

avatar
newest oldest most voted
Leroy Lipoma
Guest
Leroy Lipoma

I’m not sure where you are getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent information I was looking for this information for my mission.

Elisa Chesher
Guest
Elisa Chesher

I looks like you got it all figure out in this industry. List all ports opened in windows (netstat -nb) was a wonderful read.