You don't need to do anything with IIS. Accessing ASP pages is done through the code. Actually, you DO NOT want to use FrontPage to write or access ASP code and/or pages, use only a text editor.
Example: copy and paste this code into notepad, save it as GetIP.asp, copy it up to a website and access the file through IE.
should return your IP address and a bunch of other info using just the server variables.....
<%@language=vbscript%>
<%
IP = Request.ServerVariables("REMOTE_ADDR")
HOST = Request.ServerVariables("REMOTE_HOST")
response.write "<font face='Verdana' color='#FF0000'><b>Request.ServerVariables(""REMOTE_ADDR"") = " & IP & "</b></font><br><font face='Verdana' color='#FF0000'><b>Request.ServerVariables(""REMOTE_HOST"") = " & HOST & "</b></font><br><hr><br><br>Here's the rest of the Server Variables pulled from you...<br><br>"
Dim ServerVariable
For Each ServerVariable In Request.ServerVariables
%>
<b><%= ServerVariable %></b> = <%= Request.ServerVariables(ServerVariable) %> <br>
<%
Next
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.