WordPress.org

Ready to get started?Download WordPress

Forums

Local access works but not within my LAN (2 posts)

  1. stjoh11
    Member
    Posted 5 months ago #

    Hi! Wanted to learn how everything works...

    Installed latest "Ubuntu Server" and were able to start an apache server and wanted to install WordPress as well. It worked fine and I can access it from the Ubuntu Server via 'links' and "http://localhost/wordpress"

    From my PC I get response from the apache-server by accessing my ubuntu machine via its IP ("It Works!"). However, when trying to reach WordPress via /IP/wordpress from my PC I receive "Error establishing a database connection".

    It may be a trivial thing but how do I get the wordpress to answer to another computer in my LAN?

    Thanks for any input!
    /S

  2. esmi
    Forum Moderator
    Posted 5 months ago #

    You cannot use localhost as part of your site url if you want to be able to access the site from other computers in your local network. Every computer defines itself as localhost. You need to use an internal domain name.

Reply

You must log in to post.

About this Topic