Results 1 to 3 of 3

Thread: HTTPRequest - getting IP address

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Question HTTPRequest - getting IP address

    I am trying to figure out the best way of "getting" the IP address of users accessing a site. I know that using the IP address to identify unique users has a few flaws...
    For example, I get a different IP address every time I use my RoadRunner account! Also for many users the converse is true and that IP addresses are the same for lots of users--for example, everyone logging into your site from ASNA's home office (thanks to our firewall) will report the same IP address.
    BUT ... I really need to get something working on this... Anyone with any ideas?

    gollnick
    William E Gollnick

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: HTTPRequest - getting IP address

    VB Code:
    1. string ipAddress = HttpContext.Current.Request.ServerVariables("REMOTE_ADDR");

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Re: HTTPRequest - getting IP address

    thank you..... gollnick
    William E Gollnick

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