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

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

What is wrong?


You can add the config below to wp-config


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


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



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.