Results 1 to 5 of 5

Thread: get viewer's IP? how?

  1. #1

    Thread Starter
    Lively Member Cerebrate's Avatar
    Join Date
    May 2000
    Posts
    82

    Red face

    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]

  2. #2
    Member
    Join Date
    Jun 2000
    Location
    In front of Computer
    Posts
    37
    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.

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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.
    Harry.

    "From one thing, know ten thousand things."

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Request.ServerVariables("REMOTE_ADDR")

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    That's the one *Slaps head*

    I knew I'd read it somewhere.
    Harry.

    "From one thing, know ten thousand things."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width