Issue with Capturing IP address.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hemanth727
    New Member
    • Nov 2008
    • 3

    #1

    Issue with Capturing IP address.

    Hello All,

    I wanted to capture IP addresses of the computer accessing my website. I googled for the same and found some answers.

    I tried ,

    Request.UserHos tAddress

    and

    Request.ServerV ariables("remot e_addr") .

    I'm very much able to capture the IPs', however, it is limited to the intranet IPs' and not able to capture the external IP.

    I know that there would be IP spoofind and all, but that's okay as we restrict our users to corporate sector and not the domestic users.

    Any suggestions would be highly apprecitated.

    Thanks in advance.
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Take a look at this and this ... should be helpful.....

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I've never had any issues with using Request.UserHos tAddress.

      If the computer connecting to your website is on your same network, its not going to USE an external IP, so you would never see it.

      Comment

      • LorenVS
        New Member
        • Mar 2008
        • 8

        #4
        As far as user tracking goes, the best you can do is to track the remote IP (the user host address, as you have been doing ), the remote xfip (transferred for IP address), and the user agent. The HTTP spec doesn't provide you with any more information than that. (some may not even want to use user agent, as it could cause a single user using two different browsers would have two different signatures)...

        Comment

        Working...