tool to identify process locking port

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

Is there a tool available that would identify which process has a lock on a
specific port ?

I am running into problems in VS05 SP1 debugger creating TcpServerChannels
on a specific port , and then ( for various reasons ) I must kill the debug
session , but in some circumstances the channel remains locked ...
 
Not without specifying a protocol name, you don't.  (Or maybe you like the  
empty output that produces :) )


There's a -? flag you may find useful.  :p

I thought John was your older brother who was not well to stay home
longer and you jumped in to marry his wife
True I thought so.
 
Thanks for the response, Arne.

netstat -ano is very useful.

What is the best way to ensure way to ensure that a TcpServerChannel object
relinquishes it's port ?

I've found that object dereferencing alone is not enough.

Is registration/deregistration with ChannelServices relevant to ensuring
that the port is relinquished ?

Thanks again.
 
John said:
What is the best way to ensure way to ensure that a TcpServerChannel
object relinquishes it's port ?

Good question.
I've found that object dereferencing alone is not enough.

That is not surprising.
Is registration/deregistration with ChannelServices relevant to ensuring
that the port is relinquished ?

I doubt it.

It is worth trying calling StopListening method.

A custom IServerChannelSinkProvider seems like an overkill.

Arne
 
Back
Top