Jump to content

IP Troubles


JackJack

Recommended Posts

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 :
[code]
    <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>
[/code]

Thank you

JJ
Link to comment
Share on other sites

[!--quoteo(post=372747:date=May 9 2006, 03:41 PM:name=jeremywesselman)--][div class=\'quotetop\']QUOTE(jeremywesselman @ May 9 2006, 03:41 PM) [snapback]372747[/snapback][/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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.