Validating IP Address in machine contest, howto?

  • Thread starter Thread starter K0
  • Start date Start date
K

K0

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
 
Back
Top