Determine if ASP.NET application is running locally February 3, 2023 by Tarik See HttpRequest.IsLocal bool isLocal = HttpContext.Current.Request.IsLocal;