• Hi guys,

    I installed de WP locally with XAMPP and when I tried to acess from another computer in the same lan, using the IP address and PORT, the page is loaded but not the style, imgs, .js… any files are loaded. But I can normally access the xampp dashboard from any other computer, only the WP pages doesn’t load properly.

    When I access from localhost it works perfectly.

    – the chrome shows this error in each file when i try to access from another pc through IP:
    (failed) net::ERR_CONNECTION_REFUSED,

    I don’t know what do any more, anyone could help me please?

    OBS.:
    – I’m using XAMPP 3.2.2;
    – I changed the port to 8888, and I do access the xampp dashboard from outside, so I think the problem is not the port.
    – I already turn off the firewall and antivirus;
    – I already re-install the xampp and WP;

Viewing 2 replies - 1 through 2 (of 2 total)
  • One question, what do you have set for site URL and home URL on your wp-admin?

    If you set both to localhost URL then you need to change URL to contain ipaddress so that the website can be accessed from outside of localhost.

    Changing from wp-admin:
    Login to your WP Dashboard, navigate to Settings > General Settings

    Changing from Database:
    Login to phpadmin (ex. localhost/phpadmin if using port 80), navigate to wp_options and update the URL’s accordingly

    I hope you do not have site URL and home URL defined on wp-config.php. Not necessary for local install.

    Therefore if you do above, you should use ipaddress URL for local access.

    • This reply was modified 7 years, 6 months ago by bigacelloy.
    Thread Starter rennanabud

    (@rennanabud)

    Hi @bigacelloy, thanks so much for your help, I did what you said and it parcially worked.

    I change the URL in the settings and in the database.

    Now the styles are working but some images are not working yet.

    It keeps showing the same error for the images.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HELP ERR_CONNECTION_REFUSED’ is closed to new replies.