I have been searching the Q&A to get an answer but everything I look it either costs money (which, being out of work I currently don’t have) or doesn’t work in all situations (i.e. public vs private).
What I’m trying to accomplish is to see if a single domain can be reached within Unity by means of a single function.
I simply need a boolean returned but I’m finding it hard to determine which function (if there is one) I can use.
I know you can use “Ping” but this can return true if a public hot spot is available, even if you don’t have actual “access” to it.
What I’m looking for is something like…
public bool webSiteReachable(string webSite) {
TestConnection result = new TestConnection(webSite);
return(result.isAccessible);
}
What I’d like to know is, what function can I use as “TestConnection”?
I hope I’ve explained myself clearly enough and any help, as always, is greatly appreciated.