Monorail lock, as well as ASP.NET MVC, serve as an elegant MVC wrapper on top of the ASP.NET runtime.
Thus, everything that can be done using the ASP.NET runtime (with the exception of WebForms-specific things like ViewState) can also be done using ASP.NET MVC and with monorail.
So, you can always grab the current HttpContext ASP.NET using the static HttpContext.Current method.
In Monorail, you can also use the IEngineContext.UnderlyingContext property to access ASP.NET HttpContext.
In particular, in Monorail, you can capture the client IP address using the convenience property UserHostAddress for the current IRequest.
eg. inside controller action:
var clientIP = Request.UserHostAddress;
source share