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. Get client computer name & IP

Get client computer name & IP

Scheduled Pinned Locked Moved ASP.NET
sysadminwindows-adminquestion
5 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
    DaKhucBuon
    wrote on last edited by
    #1

    I have used: - Server : Win2000 AS - Client : Win98SE, use and share WEB through IIS Now, I want to get information about clients computer name and IP by ASP when I stay in any client... so how I do? pls... fast... fast...:);)

    J 1 Reply Last reply
    0
    • D DaKhucBuon

      I have used: - Server : Win2000 AS - Client : Win98SE, use and share WEB through IIS Now, I want to get information about clients computer name and IP by ASP when I stay in any client... so how I do? pls... fast... fast...:);)

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      If you are working in ASP.NET:

      Dim name As String = Request.UserHostName.ToString()
      Dim addr As String = Request.UserHostAddress.ToString()

      What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      D 1 Reply Last reply
      0
      • J John Kuhn

        If you are working in ASP.NET:

        Dim name As String = Request.UserHostName.ToString()
        Dim addr As String = Request.UserHostAddress.ToString()

        What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

        D Offline
        D Offline
        DaKhucBuon
        wrote on last edited by
        #3

        Thank you... but I use ASP, not .NET so how I do? My purpose's administrator clients with access sites.

        J 1 Reply Last reply
        0
        • D DaKhucBuon

          Thank you... but I use ASP, not .NET so how I do? My purpose's administrator clients with access sites.

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          OK, this is the ASP.NET forum, but here you go:

          <%
          Dim name, addr
          name = Request.ServerVariables("REMOTE_HOST")
          addr = Request.ServerVariables("REMOTE_ADDR")
          Response.Write("host name: " & name & "<br>")
          Response.Write("host addr: " & addr & "<br>")
          %>

          What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

          D 1 Reply Last reply
          0
          • J John Kuhn

            OK, this is the ASP.NET forum, but here you go:

            <%
            Dim name, addr
            name = Request.ServerVariables("REMOTE_HOST")
            addr = Request.ServerVariables("REMOTE_ADDR")
            Response.Write("host name: " & name & "<br>")
            Response.Write("host addr: " & addr & "<br>")
            %>

            What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

            D Offline
            D Offline
            DaKhucBuon
            wrote on last edited by
            #5

            Hu... hu... not done. It's seem by: - One client can use it to scan IP and computer name of any other client at one. It same as Monitor Session of IIS or ISA. Pls, give me a code by ASP (can use any IIS or ISA object)... pls... thankx much.

            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