How to Change Your Local Host Name

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Image Credit: bernardbodo/iStock/Getty Images

The default name of the local computer address is called "localhost." Therefore, the localhost is the address of the computer that an application is running on in a network. It is also known as the loopback address because it is the same address as the loopback network interface. The IP address of the localhost is "127.0.0.1." To change the localhost name, you have to edit the "Hosts" file in Windows.

Advertisement

Step 1

Click "Start," then type "C:\WINDOWS\System32\drivers\etc" in the search bar, then press "Enter." The System 32\drivers\etc folder will open.

Video of the Day

Step 2

Click "Tools" on the main menu, then select "Folder options" from the drop-down list. Click the "View" tab, then click the check box next to "Show hidden files, folders, and drives" under "Hidden files and folders." Click the "Apply to Folders" button. The "Hosts" file will appear in the System 32\drivers\etc folder.

Advertisement

Step 3

Click "Start," then type "Notepad" in the search box and press "Enter." Right-click on "Notepad" from the results list, then select "Run as administrator" from the pop-up list.

Advertisement

Step 4

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. Click "File," then click "Save" from the drop-down list.

Video of the Day

Advertisement

Advertisement

references