Getting IP Address to the webpage and database
-
I have an ASP.NET application with C# as code behind language. The application allows users to delete contents from the Microsoft Message Queue(MSMQ). The requirement is that when the user clicks on the "DELETE" button on the webpage it should logon the user computer's IP address to the database for security reasons before deleting contents from MSMQ. I have no idea regarding how to code this. How hard would it be to collect the windows logon username( optional - the domain name) along with the IP address. Is there any namespace or class in C# to help me do this or do I need to work around Active Directories? I have no idea what so ever about Active Directories Specific reading / help material is appreciated. Thanks! A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
-
I have an ASP.NET application with C# as code behind language. The application allows users to delete contents from the Microsoft Message Queue(MSMQ). The requirement is that when the user clicks on the "DELETE" button on the webpage it should logon the user computer's IP address to the database for security reasons before deleting contents from MSMQ. I have no idea regarding how to code this. How hard would it be to collect the windows logon username( optional - the domain name) along with the IP address. Is there any namespace or class in C# to help me do this or do I need to work around Active Directories? I have no idea what so ever about Active Directories Specific reading / help material is appreciated. Thanks! A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
Client IP Address:
Request.UserHostAddress
Current User (if any):User.Identity
Regards, Alvaro