By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Check for port in use?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <Oy**************@TK2MSFTNGP11.phx.gbl>, Scott Lezberg (Deltek) wrote:
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 :)

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.