Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
16002 Points
2731 Posts
Feb 18, 2012 04:04 PM|LINK
Hi
Request.ServerVariables["REMOTE_ADDR"]
http://stackoverflow.com/questions/2717702/how-do-you-get-the-users-ip-address-in-castle-mvc-monorail
http://stackoverflow.com/questions/2577496/how-can-i-get-the-clients-ip-address-in-asp-net-mvc
abiruban
All-Star
16002 Points
2731 Posts
Re: How to get client IP
Feb 18, 2012 04:04 PM|LINK
Hi
should work - either directly in a view or in the controller action method body (Request is a property of Controller class in MVC, not Page).http://stackoverflow.com/questions/2717702/how-do-you-get-the-users-ip-address-in-castle-mvc-monorail
http://stackoverflow.com/questions/2577496/how-can-i-get-the-clients-ip-address-in-asp-net-mvc
***DON'T FORGET TO CLICK “MARK AS ANSWER” ON THE POST IF HELPED YOU.