Frequently
Asked
Questions


Poll

Which Web server are you using with Active FoxPro Pages?
 


Navigation

Active FoxPro Pages FAQ
AFP 2.x
AFP in general
First steps
News
Plugins
Resources
Samples
Votes
Web server
FAQuarium
Glossary
Plugins
Server
Sidebar
Site Navigation Bar
Top Articles


Your Location

Germany


Partner Sites

- Microsoft Community Guide -
- AFPBB Boost your Board -
- AFP-Community -
- MiDeK - Internet Publishing -
- VfpNetwork.Com -
- MSDN VFP -
- CoDe Magazine -
- Golo Haas -


Advertisement

Imprint

Microsoft CLIP member

 
  [2] How to detect the IP address of your visitor?
Rate this page Print Office Email Discuss
2656 requests - last updated Montag, 26.01.2004

This is done with the method Request.ServerVariables() because any information about the client's browser is directed from the Web server to the AFP engine.

<html>
<body>
Ihre aktuelle IP-Adresse: 
<%
Response.Write( Request.ServerVariables("REMOTE_ADDR") )
%>
</body>
</html>

With activated DNS canonify in your Web server configuration you could even get the client's current domain name while using Request.ServerVariables("REMOTE_HOST").

But often the real IP address of your visitors might be masqueraded by any kind of proxies or firewalls - ie. many AOL users are routed through a handful of proxies and in consequence they all seem to have the same IP, but actually it's the address of those proxies (sigh!).

Marco Wotschadlo

All text is available under the terms of the
GNU Free Documentation License.

User contributed notesAdd a note
How to detect the IP address of your visitor?
by Anonymous - 11/06/2004 06:25:29
hello....anybody there? i need help

edited by JoKi
Yeah, sure. This section is about notes on articles. Any first message is duplicated to section AFP articles - http://forum.afpfaq.de/viewforum.php?f=15 - in the FAQuarium. So, it would be nice if we could continue your help request over there.

Sincerely, JoKi

Copyright © 2002-2005 AFP FAQ. All rights reserved. Please send any irritations on this Web site to our Webmaster. Validate HTML