Getting IP Address, User Agent – ASP.Net MVC C#

When you are making your web service, ever wonder who is using your service?  Here is one way to get user information.

More detail:

To get IP address, User Agent etc, you can use HttpRequestBase class.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.