Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Steady-Entertainment's avatar

My webserver responds a private IP to the Internet

Hello my favourite community,

I have my own webserver inside my home network behind a UTC (hardware firewall).

When I open the server under 192.168.x.x the laravel app gets displayed perfectly.

As soon as I try to access my Laravel App from the outside world via NAT / portforwarding

I cannot see the css and js files.

The console showing me:

Failed to load resource: net::ERR_CONNECTION_TIMED_OUT app.css:1 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT app.js:1 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT 192.168.1.220/img/favicon.ico:1

please check for yourself

the domain is

http://offline.vision alternatively

https://prnt.sc/s28hvm Yes I am still having issues with SSL which cannot be installed.

I think this has to do with some file pointing to 192.168.1.220 instead of the domain.

I wonder where I can change these setting.

0 likes
3 replies
bobbybouwmann's avatar
Level 88

The problem is the link to the files. Right now it shows it's trying to retrieve the CSS file from the following URL: https://192.168.1.220/css/app.css

However, it should use the same domain as your application: http://offline.vision/css/app.css

If you load your files you should add them like so

<link rel="stylesheet" href="/css/app.css">

This way it will retrieve the file relatively from the current domain. Then you will be able to resolve the CSS file.

You can see the proof here: http://offline.vision/css/app.css It will show you all the CSS correctly ;)

1 like
bobbybouwmann's avatar

If you use Laravel mix and the helpers for the assets you need to make sure you set the APP_URL for your application to the correct URL in the .env.

1 like
Steady-Entertainment's avatar

Dude bobby I really appreciate your help.

This is exactly what I was looking for.

I was so desprate since I was looking for a solution since 2 days.

I went to the laracast community and I saw your profile as the number one expert in this community.

I thought I have to travel to holland and meet you so you can help me and know as if you were reading my mind you replied and helped me.

I love you for connecting and helping me honestly.

BIG THANKS and much love very very appreciated!!!!!!!!!!!!!!!!!!!

Please or to participate in this conversation.