1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I get the IP addresses of the visitors on my site?

Discussion in 'Site & Server Administration' started by arunch2007, Nov 1, 2010.

  1. #1
    hello webmasters

    How do I get the IP address of the visitors who are coming to my website?

    thanks in advance

    Regards
    Arun
     
    arunch2007, Nov 1, 2010 IP
  2. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Install statcounter on your website, it will keep a log of all IP's that visited you.
     
    danger9918, Nov 1, 2010 IP
  3. arunch2007

    arunch2007 Active Member

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    is there any way to check it out from Google analytics i have already add it on my site??
     
    arunch2007, Nov 1, 2010 IP
  4. Victoria B

    Victoria B Peon

    Messages:
    530
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add Google analytics, is the best option
     
    Victoria B, Nov 1, 2010 IP
  5. asanka000

    asanka000 Peon

    Messages:
    782
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    asanka000, Nov 1, 2010 IP
  6. boggi

    boggi Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you can add a small code snippet in your website code that reads the IP (pretty easy even a total noob can write such a thing by searching in google) and writes it to a fire (xml or whatever) that you can download regularly or to your database so that you can use the structured data however you need it....
     
    boggi, Nov 1, 2010 IP
  7. touster

    touster Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Example, if you use PHP (make sure file ips.dat is writable):

    <?php
    $fh = fopen('ips.dat', 'a') or die('error');
    fwrite($fh, $_SERVER['REMOTE_ADDR'] . "\n");
    fclose($fh);
    ?>
     
    touster, Nov 1, 2010 IP
  8. DoDo Me

    DoDo Me Peon

    Messages:
    2,257
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #8
    install a counter
     
    DoDo Me, Nov 1, 2010 IP
  9. swasts

    swasts Peon

    Messages:
    660
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I just use google analytics to detect IP adress that coming to my site....
     
    swasts, Nov 1, 2010 IP
  10. imkazu

    imkazu Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    pretty easy, do this in php
    <?php
    $ip=$_SERVER['REMOTE_ADDR'];
    echo $ip;
    ?>
     
    imkazu, Nov 1, 2010 IP
  11. swasts

    swasts Peon

    Messages:
    660
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    if you use this PHP code you need to make sure that file ips.dat is writable
     
    swasts, Nov 1, 2010 IP
  12. arunch2007

    arunch2007 Active Member

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #12
    can u tell me the way where i can check in google analytics
     
    arunch2007, Nov 1, 2010 IP
  13. swasts

    swasts Peon

    Messages:
    660
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    sorry for wrong info..I want to type statcounter anyway....
     
    swasts, Nov 2, 2010 IP
  14. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #14
    What?

    ...........
     
    Mia, Nov 2, 2010 IP
  15. sum298

    sum298 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    go to google webmaster tools and register your account
    Then add ur site and u will see all the ip address of the users who are coming to ur site
     
    sum298, Nov 2, 2010 IP
  16. arunch2007

    arunch2007 Active Member

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #16
    i already got ebmaster tools account can u tell me where i can find it on google webmaster tools.
     
    arunch2007, Nov 8, 2010 IP