• I created a WordPress test site on my PC and want to access it also from other PCs on my local network. So far I have been unsuccessful despite using a number of different solution that were posted a while ago on this site.

    The problem might have to do in the way I set up the site:
    WordPress Address: https://test3.local/wordpress
    Site Address: https://test3.local/wordpress

    hosts file setting: 127.0.0.1 test3.local

    local file folder: C:\xampp\htdocs\test3\wordpress

    One of the access problems seems to be related to database access:

    Access forbidden! New XAMPP security concept

    The setting can be configured in httpd-xampp.conf

    But how? I was not able to find a source that describes how to do that. And the XAMPP forum clais this is a WordPress problem which is probably true because I can access non WordPress XAMPP sites on my local network.

    I hope somebody has a solution…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you reach test3.local itself from the machine itself? That should probably be a index page in your XAMPP webroot and probably won’t answer as your WordPress.

    Can you then reach that same page at test3.local from the network itself? Via some other machine on the network?

    What you need to remember is 127.0.0.1 refers to the machine you are on so 127.0.0.1 known as test3.local is the machine you are on unless you have the network resolving test3.local as the network IP address of the machine your XAMPP is installed on… Then test3.local/wordpress/ will work from the network.

    Thread Starter hapzfl

    (@hapzfl)

    test3.local works on my PC perfectly.
    I cannot reach test3.local from any other device on the network.

    …unless you have the network resolving test3.local as the network IP address of the machine your XAMPP is installed on…

    And how do I accomplish that?

    What you need to do is put a hosts file entry on the other PCs that maps your domain name test3.local to the IP address of the hosting PC. This may require you to configure your network so that your PC always uses the same IP.
    Say that your PC is using 192.168.1.23 then in the other PC the hosts file entry would be: 192.168.1.23 test3.local

    Thread Starter hapzfl

    (@hapzfl)

    Unfortunately hat does not work. I get the “Access forbidden” message.

    “You don’t have permission to access the requested directory. There is either no index document or the directory is read protected. Error 403”

    This is an Apache 2.4.41 message

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘XAMPP access from local network by another PC’ is closed to new replies.