WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files

Question

What I have: as title suggests I set up a WordPress installation on my local machine and can run it and visit it (Mac + MAMP) over localhost:8888/myBlog. It works fine. By sharing my IP I am able to reach the WordPress blog from another computer (myIP:8888/myBlog). But here is the problem.

The problem: the page loads, but not the .js, nor the .css. By inspecting the console I see six ERR_CONNECTION_REFUSED for js and css files coming from wp-content (.css and .js of a theme I installed) and from wp-includes (again .css and .js files).

What I tried: I thought it was a problem of permission so I changed the main folder and all the files recursively with chmod -R 575 as suggested somewhere but the problem persists.

Thanks!

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/wordpress-on-localhost-working-when-sharing-ip-to-connect-receive-err_connection_refused-on-js-and-css-files/">

Wordpress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files</a>
0
, , , Masiar 2 months 0 Answers 65 views 0

Leave an answer