Closed Thread
Results 1 to 6 of 6

Thread: Incorrect remote address

  1. #1
    dawwin39 is offline x10Hosting Member dawwin39 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    7

    Incorrect remote address

    Today I noticed that $_SERVER['REMOTE_ADDR'] always contains "127.0.0.1" instead of correct remote host address. Yesterday it was fine. My web page is http://dawwin.x10.bz . Can someone fix this?

  2. #2
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Incorrect remote address

    I don't see any errors on your site. If you are still having this problem, could you post the url where the error is happening?

  3. #3
    dawwin39 is offline x10Hosting Member dawwin39 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    7

    Re: Incorrect remote address

    My webpage looks fine, but i've got a problem with php variable $_SERVER['REMOTE_ADDR']; Normally it contains viewer's IP address, but today I noticed that it has value "127.0.0.1". This page http://dawwin.x10.bz/test.php contains following code
    Code:
    <?php
        echo $_SERVER['REMOTE_ADDR'];
    ?>
    If it's fine you should see your public IP address. I need this in my guest book.

  4. #4
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Incorrect remote address

    Please try the information in this thread: Regarding REMOTE ADDR

  5. #5
    dawwin39 is offline x10Hosting Member dawwin39 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    7

    Re: Incorrect remote address

    it works fine with
    Code:
    $_SERVER['HTTP_X_FORWARDED_FOR']
    I've found this thread, before I asked, but I didn't check if it works, because thread was quite old and REMOTE_ADDR stopped work today.
    Thanks

  6. #6
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Incorrect remote address

    It appears the code we had in place to fix REMOTE_ADDR got lost in the server upgrade, I'll ask an admin to add it back in.
    Ryan Schmidt | Level 2 Support
    █ 888-X10-9668 - ryan[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

Closed Thread

Similar Threads

  1. incorrect email address
    By astephenson in forum Free Hosting
    Replies: 0
    Last Post: 05-18-2011, 04:04 PM
  2. Replies: 3
    Last Post: 07-28-2010, 08:39 PM
  3. cPanel address or username password is incorrect
    By regular in forum Free Hosting
    Replies: 2
    Last Post: 03-17-2010, 11:36 PM
  4. Entered incorrect email address
    By jueru2003 in forum Free Hosting
    Replies: 1
    Last Post: 02-11-2010, 02:48 AM
  5. Incorrect email address for confirmation code
    By cqfamily in forum Free Hosting
    Replies: 2
    Last Post: 02-09-2010, 04:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers