Click to See Complete Forum and Search --> : get viewer's IP? how?
Cerebrate
Jun 16th, 2000, 12:26 AM
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]
CtrlAltDel
Jun 16th, 2000, 01:14 AM
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.
HarryW
Jun 20th, 2000, 08:23 AM
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.
Clunietp
Jun 20th, 2000, 09:07 AM
Request.ServerVariables("REMOTE_ADDR")
HarryW
Jun 20th, 2000, 08:41 PM
That's the one *Slaps head* :)
I knew I'd read it somewhere.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.