-
I want to write a page that show's whether my friend is browsing my site or not. so I am thinking maybe I can get their IP then write a script that makes me be able to know if they are browsing my site or not.
can anyone tell me how to get their IP?
how to detect if they are browsing?
Thanks
Cerebrate
[Edited by Cerebrate on 06-16-2000 at 01:31 PM]
-
there is a perl hack for the UBB, and its called "Who's Online" im sure that you could find the code for displayin the users IP in that, since that hack displays the users ip as part of the info.
-
If you're using ASP then I think a user's IP is available through the session object, or it's an environmental variable or something. Been a while since I did ASP now.
Your friend might have a dynamically allocated IP though, which would mean that his IP is different each time he logs on. You'd have to find out his IP each time.
-
Request.ServerVariables("REMOTE_ADDR")
-
That's the one *Slaps head* :)
I knew I'd read it somewhere.