How to know which port is busy or free on Windows 7?

9

Possible Duplicate:
How can I see all active connections?

I have some conflict of ports and my WampServer didn't work, so I have to know which port is used.

Is there a command line command ? or any program to monitor the ports ?

hamed

Posted 2012-07-20T08:09:18.163

Reputation: 4 960

Question was closed 2012-07-20T12:16:13.677

Answers

21

To list open ports and listening services, then from within command prompt, type

netstat -a

or

netstat -an

For more details, in command prompt type

netstat ?

Dave

Posted 2012-07-20T08:09:18.163

Reputation: 24 199

4

Telnet attempts to connect to a server on a port

telnet <hostname> <port>

You will either connect, or not.

Simple tried and true method.

Works on Windows or Linux

Dean Rather

Posted 2012-07-20T08:09:18.163

Reputation: 2 499

3

To get the most information about what ports are open, what state they're in, and other relevant network information, I would suggest you download nmap. It's a free network mapper/port scanner, and by typing either nmap -v 127.0.0.1 in Command Prompt or 127.0.0.1 in the "Host" or "Target" field in the GUI counterpart (called Zenmap), you will quickly obtain any information you need about open ports on your computer.

Matt

Posted 2012-07-20T08:09:18.163

Reputation: 437