Check for port in use?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scott Lezberg \(Deltek\)

    #1

    Check for port in use?

    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


  • Tom Shelton

    #2
    Re: Check for port in use?

    In article <Oyw5kdkoDHA.36 12@TK2MSFTNGP11 .phx.gbl>, Scott Lezberg (Deltek) wrote:[color=blue]
    > 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
    >
    >[/color]

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

    --
    Tom Shelton
    MVP [Visual Basic]

    Comment

    Working...