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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I collect IP address of the user from Internet

Status
Not open for further replies.

Cap2010

Programmer
Mar 29, 2000
196
CA
Hi,<br><br>How Do I go about in collecting <br><br>hostname, IP address,browser,date, counter(no. of time accessed) and hours remained on my site.<br>date, time of the user(on Internet) who is accessing<br>my site.<br><br>Assuming, use of ASP is there ?<br><br><br>Thanks.<br><br><br><br>
 
In ASP:<br><br>HOSTNAME:<br>&lt;% = Request.ServerVariables(&quot;SERVER_NAME&quot;) %&gt;<br>IPADDR:<br>&lt;% = Request.ServerVariables(&quot;REMOTE_ADDR&quot;) %&gt;<br>CURRENT DATE/TIME:<br>&lt;% = Now %&gt;<br><br>etc.. that's all I know off the top of my head.. the rest (counter, length of time on site, etc.) is harder to really get.. you'd have to use session variables to track users I would imagine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top