ip address

Discussion in 'PHP' started by coder 525, Jul 2, 2008.

  1. #1
    I have used $ipi = getenv("REMOTE_ADDR") to capture ip address.
    But the ip address I am getting is different from awhat I am getting from
    http://whatismyip.com....
    Could u please help...
     
    coder 525, Jul 2, 2008 IP
  2. php-lover

    php-lover Active Member

    Messages:
    261
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #2
    $ip = $_SERVER['REMOTE_ADDR'];
    echo $ip;
     
    php-lover, Jul 2, 2008 IP