Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP address 1

Status
Not open for further replies.
Jan 15, 2001
193
AU
Can I determine the IP address of the client from VBscript?
 
Yeap, it is possible from server side VBscript
Try this example

<%@ Language=VBScript %>
<HTML>
<BODY>
REMOTE ADDR :<%=Request.ServerVariables(&quot;REMOTE_ADDR&quot;)%>
<br>
REMOTE HOST :<%=Request.ServerVariables(&quot;REMOTE_HOST&quot;)%>
<TABLE BORDER=&quot;1&quot;>
<TR><TD><B>Server Variable</B></TD><TD><B>Value</B></TD></TR>
<% For Each strKey In Request.ServerVariables %>
<TR>
<TD><%= strKey %></TD>
<TD><%= Request.ServerVariables(strKey) %></TD>
</TR>
<% Next %>
</TABLE>
</BODY>
</HTML>
________
George, M
 
Thats great and it runs, but does not display any details...any clues?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top