Does any one know the answer to this.
a uri is in the format
Google or
ftp://ftp.google.com for example
But I have the IP address 8.8.8.8 (yer google PublicDNS server)
now I could do a recursive look up to get the url for this, but is there a uri format for IP address
something like
http://8.8.8.8/
?
I have a program that runs test against URL, but I realised it does not work if the user puts in the native IP, so my options are to
rewrite it to natively handle IP's
use a recursive step to obtain the Uri (but this assume the IP has a URL name at all)
or work out how to make the IP with as a URL.
Uri testuri = new Uri("http:\\8.8.8.8");
this tells me it is incorrectly formatted.