1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

obtain the real (actual) IP address trough Javascript

Discussion in 'HTML & JavaScript' started by Dax0r, Feb 12, 2012.

  1. Dax0r

    Dax0r Registered Member

    Joined:
    Jan 25, 2012
    Messages:
    66
    Likes Received:
    5
    There has been a lot of misinformation concerning the use of JavaScript in obtaining the real IP address of a user visiting a web page through an anonymous proxy (or proxies).
    I'm not talking about Java, ActiveX, Flash, VBSscript,perl.

    The question is about clients that ONLY have JavaScript enabled in their browser.

    Of course I dont think it's possible, in fact this is what I found:



    Anyone can confirm it?
     
  2. Ninya

    Ninya Regular Member

    Joined:
    Jan 22, 2012
    Messages:
    219
    Likes Received:
    113
    Occupation:
    Programmer
    Location:
    Sydney, Australia
    You would have to place the page on a server that supports SSI, then set it up to parse the HTML page for SSI directives, there's no real way to do it without server side scripting on a static page.
     
  3. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Using javascript, a site can get an educated guess as to the fact that you are using a proxy or not.

    Using javascript alone, they can not read your "internet" ip. Using javascript alone, the can get your private ip (192.x.x.x/10.x.x.x) if you are behind a NAT.
     
  4. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    I would go with ajax and PHP. ;)
     
  5. Dax0r

    Dax0r Registered Member

    Joined:
    Jan 25, 2012
    Messages:
    66
    Likes Received:
    5
    It's impossible. The only way is SSI
     
  6. Dax0r

    Dax0r Registered Member

    Joined:
    Jan 25, 2012
    Messages:
    66
    Likes Received:
    5