Forums

Only reachable from localhost (7 posts)

  1. PitterPat
    Member
    Posted 1 year ago #

    Hi,

    Just installed WP and it runs fine from localhost.

    But I can't reach it from any other host.

    As far as I can tell, this isn't a firewall error. I can reach other applications at /var/www/html/* such as index.html and phpMyAdmon/index.php.

    I've searched syslog, auth.log, httpd/access_log, httpd/error_log, mysqlmanager and can't find any errors or other messages.

    It's not a router problem either b/c I can't reach WP from within the LAN other than from localhost.

    And it's not a php error b/c it does work from localhost.

    Any ideas of what's wrong or where to look would be greatly appreciated.

    Thanks,

    PP

  2. whooami
    Member
    Posted 1 year ago #

    what are you using to connect to it from localhost?

    http:// <what>

    thats the question that you didnt answer, and the most important one.

  3. PitterPat
    Member
    Posted 1 year ago #

  4. whooami
    Member
    Posted 1 year ago #

    is that what you are using to connect to it from outside?

    if so, thats why.

    My localhost, is the box I am on right this second..

    does that give you a clue to the problem?

    what you need to do is use an IP, and you should have set that up when you installed -- OR if the IP changes alot than you probably want to use a service like dyndns or such to map your everchanging IP to a non changing domain name.

    and just like the IP, wordpress beed to be made aware via the siteurl setting.

  5. PitterPat
    Member
    Posted 1 year ago #

    Hi,

    Sorry but I don't understand that.

    When I'm on localhost I use http://localhost/Wordpress

    When I'm NOT on localhost but still on the LAN I use http://&lt;192.168.x.x&gt;/Wordpress (that's the LAN side IP of the server).

    When I'm outside of the LAN I use http://&lt;my WAN IP>/Wordpress (of course I substitute my real WAN side ip).

    By comparison, each of the above URL's works fine if I substitute phpMyAdmin for Wordpress.

    What am I missing?

    Thanks,

    PP

  6. whooami
    Member
    Posted 1 year ago #

    youre missing the fact that you cant have all 3 out of the box like that with WP - thats what. when you installed wordpress, let me guess, you used localhost for the siteurl..

    WP is not phpmyadmin.

    Change it to 192.x.x.x and see if the other 2 dont break unless you have 192.x.x.x in your /etc/hosts file

    Change it to a routable IP and see if they dont all 3 work.

    You can do all three, but to do takes changing a core file, and frankly I dont see why you would want to.

    you could probably also use ipmasqing...

  7. PitterPat
    Member
    Posted 1 year ago #

    Hi,

    YES! I get it now.

    Thanks!

    PP

Topic Closed

This topic has been closed to new replies.

About this Topic