Lloyd Dupont
10/2/2003 3:00:00 AM
ho, cool ....
I will use that for my apps.
anyway on pocket pc I had some bad experience with Dns.GetHostByName()
"Juan Gabriel Del Cid" <jdelcid@atrevido.nospam.net> wrote in message
news:ehpSmGAiDHA.2120@TK2MSFTNGP10.phx.gbl...
> > I wonder if there is another way to do that which would avoid the try
> catch,
> > any tips ?
>
> You could always use the Dns.GetHostByName method, it suports both
hostname
> and IP address. If you pass it a name (e.g. "www.google.com"), it will
> resolve the address. If you pass it an IP address (e.g. "216.239.41.99"),
it
> will just parse that and return it as the address.
>
> Hope this helps,
> -JG
>
>