You might try writing some "ping" code.
Here is an example that might help.
http://www.christopherlewis.com/Ping.cs.htm
"K0" <(E-Mail Removed)> wrote in message
news:qBSeb.153686$(E-Mail Removed)...
> Hi all!
>
> I have a small app that opens a port on one of its IP Addresses. The
address
> comes from DB Table. The problem is, if the address is incorrect, when i
> pass it to a TcpListener a socketexception is raised (IP Address not valid
> in context...).
>
> Is there a way for me to check the validity of the IP Address BEFORE
> actually trying to open the listener?
>
> Thanx to Anyone answering
>
> bye
>
>