Cannot access WordPress from localhost or other PC’s on LAN
-
I have an Actiontec GT701-wg router that is preventing access to my WordPress page from any PC on the LAN
Here’s the scenario: I am using computer A to access and use my WordPress site, computer B is the server that is hosting the WordPress site, and both computers are plugged into a GT701 router, which in turn is linked to the Internet. Internet users can access the server from the outside by typing in https://www.example.com (because port forwarding is set up on the GT701). However, the GT701 will not allow me to type that address in from computer A, because the GT701 interprets such an action as a request to view the GT701’a administrative interface. Instead, I must type in the local network IP address (192.168.0.xxx) of computer B to access and use my WordPress site.
However, this causes a problem because the “home” url is used by WordPress to create all the site’s links. If the “home” url is set for https://www.example.com, I will be unable to use the site from computer A (even if I type in the local IP). If the “home” url is set for the local network IP address, Internet users will not be able to use the site.
So, in order to add content, I have to go into the database, and change the value of the “home” field in the wp_1options table from https://www.example.com to 192.168.0.xxx. Once that is done, I can add my content, but nobody on the Internet can see my blog until I change the value of “home” back to https://www.example.com.
Thanks,
Hackhound
- The topic ‘Cannot access WordPress from localhost or other PC’s on LAN’ is closed to new replies.