Jump to content


Photo

IP Troubles


  • Please log in to reply
2 replies to this topic

#1 JackJack

JackJack
  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 09 May 2006 - 08:35 PM

I want to show the users IP on the page but the result for me is 127.0.0.1 (but infact it is something else).

The code i have used is :
    <center>
        <font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
            Your IP is being logged as: <?php echo $_SERVER['REMOTE_ADDR']; ?>
        </font>
    </center>

Thank you

JJ

#2 jeremywesselman

jeremywesselman
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts
  • LocationIndependence, KY

Posted 09 May 2006 - 08:41 PM

If you are running this on your own computer and not on a server you will get this result.

#3 JackJack

JackJack
  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 09 May 2006 - 08:43 PM

[!--quoteo(post=372747:date=May 9 2006, 03:41 PM:name=jeremywesselman)--][div class=\'quotetop\']QUOTE(jeremywesselman @ May 9 2006, 03:41 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
If you are running this on your own computer and not on a server you will get this result.
[/quote]

Thank you

JJ




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users