Double-click the "Hosts" file in the System 32\drivers\etc folder, then select "Notepad" from the "Open with" list. The file will open in Notepad. Scroll down to the bottom of the file until you see: "127.0. 0.1 localhost." Replace the word "localhost" with the name you prefer.
How do I change my IP from 127.0 0.1 to localhost?
To do so, you need to edit the host file – a file containing the mappings of IP addresses to hostnames. The host file consists of two columns, where one is reserved for an IP address and the other for its corresponding hostname. Add a new entry to the file and assign the localhost IP address 127.0.