il_betto
09-01-2009, 04:39 AM
Hi to All,
before posting I have read the topics of this forum and I saw in internet interesting articles reltative to my problem,
but,
up to now i' m not able to solve it...
I have a page.asp,
and I want to catch, to extract the name of the client, of the host that in intranet open my page ...
I have tried in different ways but the results are:
<%@ Language=VBScript %>
<% Option Explicit %>
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AAA</title>
</head>
<body>
<pre>
<%=Request.ServerVariables("REMOTE_HOST")%>
<%=Request.ServerVariables("REMOTE_ADRR")%>
<%=Request.ServerVariables("HTTP_HOST")%>
<%=Request.ServerVariables("HTTP_REFERER")%>
</pre>
REMOTE_HOST and REMOTE_ADRR give me both the IP adress,
HTTP_HOST returns the server name and not the client name,
HTPP_REFERER returns nothing ...
I have IIS,
I saw the property of Services of my Server and I controlled that NetBios is enabled,
I have even seen my FireWall,
what I want is to extract the information of the client that for example can be reached with regedit in:
HKEY_LOCAL_MACHINE / SYSTEM / ControlSet001 / Control / ComputerName / computerName
Thanks a lot in advance for Your attention !!!
before posting I have read the topics of this forum and I saw in internet interesting articles reltative to my problem,
but,
up to now i' m not able to solve it...
I have a page.asp,
and I want to catch, to extract the name of the client, of the host that in intranet open my page ...
I have tried in different ways but the results are:
<%@ Language=VBScript %>
<% Option Explicit %>
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AAA</title>
</head>
<body>
<pre>
<%=Request.ServerVariables("REMOTE_HOST")%>
<%=Request.ServerVariables("REMOTE_ADRR")%>
<%=Request.ServerVariables("HTTP_HOST")%>
<%=Request.ServerVariables("HTTP_REFERER")%>
</pre>
REMOTE_HOST and REMOTE_ADRR give me both the IP adress,
HTTP_HOST returns the server name and not the client name,
HTPP_REFERER returns nothing ...
I have IIS,
I saw the property of Services of my Server and I controlled that NetBios is enabled,
I have even seen my FireWall,
what I want is to extract the information of the client that for example can be reached with regedit in:
HKEY_LOCAL_MACHINE / SYSTEM / ControlSet001 / Control / ComputerName / computerName
Thanks a lot in advance for Your attention !!!