Port Usage / Conflict

P

Patrick Prince

Hi,

KB-832017 says "While many services may rely on a
particular TCP or UDP port, only a single servcie or
process can be actively listening on that port at any one
time."

Is this enforced by Windows or a recommendation to avoid
conflicts?

We have an application that is expereincing socket errors
and we're trying to find out if another process is using
its ports at the same time.

Thanks,
Patrick
 
M

Michael Johnston [MSFT]

This is absolutely enforced. You will get a socket bind error if you attempt to place a port in the listen state when that port is
already used by another application.

Thank you,
Mike Johnston
Microsoft Network Support
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from
which they originated.
 
A

Alan Wood [MSFT]

Just to add a bit.. You can use TCPview from the sysinternals.com to see
what services are using what ports.
http://www.sysinternals.com/ntw2k/source/tcpview.shtml

In Windows XP and Windows 2003 you can use NETSTAT -ano and this will
output the PID, you can match the PID with the PID in task manager to see
the actually service that is using the specified port.

Thanks!

Alan Wood[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top