I'm running localhost server on Ubuntu with xampp.
I want to access that server from another device within the same network.
To achieve that i'm using host IP adress from local network which is 192.168.150.250.
When i'm entering 192.168.150.250 from another device than localhost content is loaded and now i can see the xampp dashboard. When i'm trying to get into subdirectory of host. E.g 192.168.150.250/my-site url is instantly redirected into localhost/my-site.
What's strange not all the devices are redirected. For example my iOS device is not changing IP adress for localhost but my laptop does. I thought it may be caused by firewall so i disable it using :
sudo ufw disable
Now it's getting very interesting because this setting enabled my laptop Explorer browser to connect with my host, but in the same laptop Chrome browser is still redirecting site from IP to localhost.
My etc/hosts file
127.0.0.1 localhost
127.0.1.1 Ubuntu-X
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
What can cause this strange redirects? Why it's working on some devices and browsers when it doesn't on others?