How do you get the User's IP Address in Castle MVC?

Posted by Brenton Alker on Stack Overflow See other posts from Stack Overflow or by Brenton Alker
Published on 2010-04-26T23:34:39Z Indexed on 2010/04/27 0:13 UTC
Read the original article Hit count: 384

Filed under:
|
|
|
|

In a controller action of a CastleMVC application, how can I get the user's IP Address?

I think in asp.net mvc it would be Request.ServerVariables["REMOTE_ADDR"], but I can't find an equivalent in Castle.

(I am aware of potential proxy issue's etc, the address that is reported in the request is fine)

© Stack Overflow or respective owner

Related posts about c#

Related posts about castle-monorail