1

I've installed a Wordpress site on my local Apache Ubuntu 18.04 server with a fixed IP 192.168.100.150.

The website is working fine locally (localhost/wordpress), but when I try to open the site from another device (192.168.100.150/wordpress), it automatically redirects me to 127.0.0.1/wordpress and I get a "127.0.0.1/wordpress" refused to host message.

What is wrong?

1

You can add the config below to wp-config

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Or update the value in database at wp_options table. The settings of url located at siteurl and home in column option_name

0

Actually, I deleted my browser's cookies, refreshed and it worked.

chrome://settings/?search=clear+browsing+data

-1

Well, that was a problem related to my browser's cache - opening the site in incognito mode fixed the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.