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 -?

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Leroy Lipoma
13 years ago

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
15 years ago

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