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 :)
 

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

Back
Top