|I'm working on an Android app that we only want to allow to run if the user has VPN'd into the network.
The question is, how do I determine if the user has VPN'd in?
I have tried the following:
var address = Dns.GetHostAddresses("www.mycompany.com").FirstOrDefault();
var hostName = Dns.GetHostName();
var domainName = System.Environment.UserDomainName;
UserDialogs.Instance.Alert(domainName, "Domain Name", "OK");
UserDialogs.Instance.Alert(hostName, "Host Name", "OK");
UserDialogs.Instance.Alert(address.ToString(), "Address", "OK");
The results are always the same, even if I'm NOT VPN'd in.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.