Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Getting IP Address to the webpage and database

Getting IP Address to the webpage and database

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasedata-structuressecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DELETEUSER
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • D DELETEUSER

      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.

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #2

      Client IP Address: Request.UserHostAddress Current User (if any): User.Identity Regards, Alvaro


      You know what they say about arguing over the Internet...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups