Why localhost does not work on windows

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Why localhost does not work on windows

by jordan4ibanez » Mon Dec 10, 2012 01:13

In case you are wondering why doing localhost does not work on windows, it's because by default 127.0.0.1 is not directed to localhost, to fix this, run notepad as admin, then open:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
WINDOWSDRIVE\Windows\system32\drivers\etc\hosts


And add:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
127.0.0.1 localhost


To the bottom of it.
If you can think it, you can make it.
 

OmniStudent
Member
 
Posts: 261
Joined: Sat Nov 03, 2012 06:40

by OmniStudent » Mon Dec 10, 2012 06:58

Weird that something this basic is left out in Windows. Did they forget, or was there a reason behind it?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Dec 10, 2012 08:20

There is a pull request to fix it on Github (it makes "localhost" always connect to 127.0.0.1).
https://github.com/celeron55/minetest/pull/216
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Mon Dec 10, 2012 13:59

OmniStudent wrote:Weird that something this basic is left out in Windows. Did they forget, or was there a reason behind it?


Its because by default localhost is reserved for windows server in some installs, although I have to say I have never had a problem accessing 127.0.0.1 via localhost on windows :S well other than in older versions of windows like xp, vista etc Windows 7/8 seem to work fine when connecting to localhost.
Last edited by dannydark on Mon Dec 10, 2012 14:00, edited 1 time in total.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 15 guests