WordPress.org

Support

Support » Localhost Installs » [Resolved] XAMPP, Local Network with WordPress problems

[Resolved] XAMPP, Local Network with WordPress problems

  • Hi guys,

    I have XAMPP running on my PC. I was able to access my localhost for files like html, php etc from another computer on the same network.

    However, trying to access my WP-site on my PC will return server not found.

    For example, I am able to access 192.168.1.34/myhtmlsite/index.php just fine from another computer on the same network, but if I try to go to 192.168.1.34/mywpsite, it will return server not found.

    Is there any configurations inside WP that causes this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi

    @esmi

    Forum Moderator

    What urls did you enter in General -> Settings?

    Do you mean the Permalink Settings? I set it to “default”

    esmi

    @esmi

    Forum Moderator

    No. In Settings -> General (I was typing backwards…)

    My apologies, should have added that I was using Multisite.

    I installed another instance of WordPress, changed the URL for both Site & WordPress URL and now I am able to access from another computer. Thanks for the tips!

    Is there similar settings in Multisite where I can change these URLs? I’ve tried looking into both Network & Site admin, but there are none.

    esmi

    @esmi

    Forum Moderator

    You may need to actually edit your database for a multisite install.

    You mean I have to search for every instance of “localhost/” and change it to my local network IP?

    I’d appreciate if you can offer a more detailed answer or point me to the right direction where this was done successfully.

    You mean I have to search for every instance of “localhost/” and change it to my local network IP?

    That’s probably the case, if you reinstalled using “localhost” instead of the pc’s static LAN ip address.

    If that was really your only issue, all you needed to do was just add an entry to your hosts file to resolve localhost (127.0.0.1) to 192.168.1.34.

    That should allow you to access the site from both your LAN, and the browser on the PC where you installed xampp.

    Thank you James. I went ahead and do “search & replace” of my SQL database. then changed 2 lines on wp-config from “localhost” to my static local ip. It works great!

    As for resolving localhost, I’d probably do that later since there are a few other installations here that still runs on localhost as the base url. Thanks for the tip anyway.

    Also thanks to esmi for the pointers. 🙂

    Cheers.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] XAMPP, Local Network with WordPress problems’ is closed to new replies.
Skip to toolbar