Get client computer name & IP
-
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...:);)
-
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...:);)
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.
-
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.
Thank you... but I use ASP, not .NET so how I do? My purpose's administrator clients with access sites.
-
Thank you... but I use ASP, not .NET so how I do? My purpose's administrator clients with access sites.
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.
-
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.
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.