Sign in with
Sign up | Sign in
Your question

How to change the default localhost ip 127.0.0.1 on a Vista PC ?

Last response: in Networking
Share
August 11, 2007 4:04:04 PM

Hi, I would like to change the default localhost ip (127.0.0.1) on my Vista Home Premium PC. I tried to modify the "hosts" file located in c:\windows\systems32\drivers\etc but it didnt work. Any idea ?
August 11, 2007 8:02:54 PM

um... LOL. Honestly, when I saw the thread title I thought 'the host file! it's so easy to fix it too! this is gonna be an EASY reply. Then, your post says the host file doesn't fix it. Honestly, I can't think of how else you'd change the localhost. Just for curiosity, why would you want to change the localhost? Why not just specify a new IP in the host file? Like do a localhost2 and set it to whatever you want?
August 16, 2007 1:30:09 PM

do this and it will let you change/save your hosts file.

1) Browse to Start -> All Programs -> Accessories
2) Right click "Notepad" and select "Run as administrator"
3) Click "Continue" on the UAC prompt
4) Click File -> Open
5) Browse to "C:\Windows\System32\Drivers\etc"
6) Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7) Select "hosts" and click "Open"
8) Make the needed changes and close Notepad. Save when prompted.
Related resources
Can't find your answer ? Ask !
May 22, 2009 10:38:11 PM

Thank you! I couldn't find that till now
October 31, 2009 7:12:48 PM

BeanDip0001 said:
do this and it will let you change/save your hosts file.

1) Browse to Start -> All Programs -> Accessories
2) Right click "Notepad" and select "Run as administrator"
3) Click "Continue" on the UAC prompt
4) Click File -> Open
5) Browse to "C:\Windows\System32\Drivers\etc"
6) Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7) Select "hosts" and click "Open"
8) Make the needed changes and close Notepad. Save when prompted.


thanks, even after a few years this post was helpful.
April 15, 2010 11:58:46 AM

BeanDip0001 said:
do this and it will let you change/save your hosts file.

1) Browse to Start -> All Programs -> Accessories
2) Right click "Notepad" and select "Run as administrator"
3) Click "Continue" on the UAC prompt
4) Click File -> Open
5) Browse to "C:\Windows\System32\Drivers\etc"
6) Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7) Select "hosts" and click "Open"
8) Make the needed changes and close Notepad. Save when prompted.


Tried but didn't work :( 

I'd like to redirect localhost to 10.0.0.1 - so I can test a site on my mac's localhost.

Any ideas?

Thanks!
April 15, 2010 1:15:11 PM

You can't really do what you're asking that's your loopback adapter and it's not optional.... and if you could change it would break... well... most everything. There are more reasons for this than I can or care to list.

So what exactly are you trying to accomplish here? If you can detail what your problem is / why you're trying to redirect to your loopback to your mac on 10.0.0.1 perhaps we can come up with a solution that will work.
April 15, 2010 5:44:44 PM

what Brian_TII said. It's a standard that's been around since the 80s and is non-optional as it's built right into the TCP/IP stack.
Anonymous
June 24, 2010 9:14:09 AM

do not work the method. any other help?
June 24, 2010 9:58:45 PM

um, so you are hosting a site on your MAC, what ever software you are using have it listen on you own IP, then open your browser up and type your own ip....
June 25, 2011 11:44:11 PM

BeanDip0001 said:
do this and it will let you change/save your hosts file.

1) Browse to Start -> All Programs -> Accessories
2) Right click "Notepad" and select "Run as administrator"
3) Click "Continue" on the UAC prompt
4) Click File -> Open
5) Browse to "C:\Windows\System32\Drivers\etc"
6) Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7) Select "hosts" and click "Open"
8) Make the needed changes and close Notepad. Save when prompted.



i did this just for soe purpose like a month before and now i wanted to come back to my default host file..i tried my best but could come up with default host file.i think i have only one option to install window again but i am pretty sure there should be a way to make host file default..

If u have any idea pls email me at super8mville@gmail.com
appreciated
thanks
waiting
December 9, 2011 4:40:40 AM

is this the same for a vista?
January 28, 2013 7:08:58 PM

becrio23 said:
is this the same for a vista?


I would guess so...I looked at this 6 years later and it works on windows 7. In response to the previous chat, local host can't go beyond 127.0.0.1 thru 127.255.255.255 as far as I understand, so 10. whatever won't work.
!