private void GetUserLocation() { try { var systemInfo = new ActiveDs.ADSystemInfo(); var siteName = systemInfo.SiteName; UserLocation = !string.IsNullOrEmpty(siteName) ? siteName : "UNKNOWN"; if (UserLocation == "VPN") { if (IpAddress == "") { GetIpAddress(); } if (IpAddress.StartsWith("172.30.56")) { UserLocation = "LON"; } } } catch { UserLocation = "UNKNOWN"; } }