HttpRequest.IsLocal Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating whether the request is from the local computer.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public bool IsLocal { get; }

Property Value

Type: System.Boolean

true if the request is from the local computer; otherwise, false.

The IsLocal property returns true if the IP address of the request originator is 127.0.0.1 or if the IP address of the request is the same as the server's IP address.

.NET Framework
Available since 2.0
Return to top
Show: