Check for port in use?

  • Thread starter Thread starter Scott Lezberg \(Deltek\)
  • Start date Start date
S

Scott Lezberg \(Deltek\)

Is it possible to check for a port (such as port 8000) in use using VB .NET?

If so, is there any sample code around.

Thanks in advance.

Scott
 
Is it possible to check for a port (such as port 8000) in use using VB .NET?

If so, is there any sample code around.

Thanks in advance.

Scott

Try to bind to the port, and catch the exception :)
 
Back
Top