IsLocal Property

HttpRequest.IsLocal Property

 

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:
© 2016 Microsoft