• Set up my raspberry pi today and connected to my network via WIFI, then followed this guide . I found the ip address of the raspberry pi using hostname -I, then when I type this into my web address from another LAN computer, I’m able to pull up the wordpress site. However, when I use this ip address followed by /wp-admin, I’m unable to access the admin panel. How can I access the admin panel from another local computer?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Set up my raspberry pi today and connected to my network…
    …I found the ip address of the raspberry pi using hostname -I, then when I type this into my web address from another LAN computer..

    Assign your Pi a static IP address on your own LAN, example: 192.168.x.x, then install WordPress on the Pi using that internal IP address – https://192.168.x.x/wp-admin/install.php

    That should let you connect to the WordPress on the Pi from any machine located on the same LAN by using the Pi IP address. I’m guessing you might have installed WordPress directly from the Pi the first time, and “localhost” may appear in your WordPress addresses. That will prevent navigating your WordPress site from any machine but the Pi.

    Thread Starter dannytaki

    (@dannytaki)

    Interesting that’s definitely what I did. A couple of follow up questions if you dont mind answering or pointing me in the right direction:
    1. How do I assign my pi a static IP address on my LAN
    2. Why can’t I use the IP address assigned to my Pi by default to navigate my wordpress site from another computer – why should wordpress prevent this?

    Why can’t I use the IP address assigned to my Pi by default to navigate my wordpress site from another computer

    You should be able to access the web directory on the Pi and view your front page, but because your WordPress URLs include “localhost”, you won’t be able to navigate to any other part of the site without an error. Every computer has a “localhost” or “127.0.0.1” address, so whenever you access a web address with “localhost” in the URL, the computer you are using to view the site tries to resolve the page to itself, rather than the server it’s located on.

    Another consideration would be that your local network router is also probably assigning IP addresses in DHCP mode, so it’s only a matter of time (say a power down or a reboot) and the address of the Pi could change.

    why should wordpress prevent this

    WordPress doesn’t prevent it. It’s a server configuration issue relative to the “localhost” issue.

    How do I assign my pi a static IP address on my LAN

    It may vary depending on the OS you chose. Some info that will probably lead you in the right direction – (link goes to Google) assign a static ip to pi

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t access wp-admin section of site on local computer’ is closed to new replies.