• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How is this possible? localhost and 127.0.0.1 poiting to two different websites!

hezhwan.hassan

New Member
Joined
May 20, 2019
Messages
16
Reaction score
3
I have no idea what i did wrong, im using uniform server, no error in logs, but somehow when i enter localhost im getting to a version of my website, and when i enter 127.0.0.1 im getting to another website. I wanna use the 127.0.0.1 layout but giving out the ip to friends, they only get to the localhost layout! Please help!
 

Attachments

Solution
That is the strange part, i only have uniform server installed, and for exampel when i make a change in the website, for example add a new button or something, the button appears on both local and 127. so they are configurated to the same files but showing 2 different backgrounds, and in the layout/image/header i only have 1 background image??
Might be a browser cache issue?
I'd try clearing the cache and cookies in your browser.
There is nothing in my hosts file, every line is a # behind so i guess none of the lines counts. well nothing unusual atleast? anything else in mind?
 
There is nothing in my hosts file, every line is a # behind so i guess none of the lines counts. well nothing unusual atleast? anything else in mind?
Mhm, yes, nothing count. But then its really weird that local and 127 points to different websites TBH...

Do you have 2 different webservers or something? do you at least know where the codes of the pages are, in your filesys?
 
Mhm, yes, nothing count. But then its really weird that local and 127 points to different websites TBH...

Do you have 2 different webservers or something? do you at least know where the codes of the pages are, in your filesys?

That is the strange part, i only have uniform server installed, and for exampel when i make a change in the website, for example add a new button or something, the button appears on both local and 127. so they are configurated to the same files but showing 2 different backgrounds, and in the layout/image/header i only have 1 background image??
 
That is the strange part, i only have uniform server installed, and for exampel when i make a change in the website, for example add a new button or something, the button appears on both local and 127. so they are configurated to the same files but showing 2 different backgrounds, and in the layout/image/header i only have 1 background image??
Might be a browser cache issue?
I'd try clearing the cache and cookies in your browser.
 
Solution
This should be Cache yea, try CTRL + F5 on the webpage.
Might be a browser cache issue?
I'd try clearing the cache and cookies in your browser.

Okey, so i cleared the chache on webpage and this solved the issue for me, but i try to access my page throug my phone with another ip and stil shows the background i dont want.. now could you do me the favor of looking at the website and tell me what layout you see?
81.230.233.241
i want people to see the original tibia background and not the one with "FORGOTTEN"! thanks for trying to help! rep++
 
Okey, so i cleared the chache on webpage and this solved the issue for me, but i try to access my page throug my phone with another ip and stil shows the background i dont want.. now could you do me the favor of looking at the website and tell me what layout you see?
81.230.233.241
i want people to see the original tibia background and not the one with "FORGOTTEN"! thanks for trying to help! rep++
Untitled.png
 
You're using Chrome, try to enable the function Network -> Disable cache (while devTools is open)

A tip: open your dev tools (F12) when edit something (have something like that in all browsers)

Or Clear storage -> Storage -> uncheck all
 
Open the browser (Crome here)
e91daa97eb724e609a520d95456532b6.png

Go into the right corner
f368458d843ae9b3fbed9a472a27b82d.png

When you're in there go into history
a42a36b5c3c9558ad8dd60a814760e0b.png

Clear browsing history
0767da9ba319d2a696d48cd550003289.png

Latest Hour works fine to update the website
5f9b0a66c395e6dfb9e1dcd6a950f718.png

This will help you to see changes you make on your website, enjoy.
 
You most likely have set up a different vhost with localhost or 127.0.0.1 which is using another website on your pc.
 
Are you guys even reading? HE already solved it, it was a cache issue...
By the way, all the people saying to clear data and stuff thats not necessary at all: Just ctrl+shift+r and will hard reload. If a deeper cache clean is needed, you can right-click on the reload button in browser while inspect mode is open, and select Clear cache and hard relaod.
 
Back
Top