Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to remove my localhost from my host window temporarily to install a software what is the safest way to go about this?

I'm on a Mac running OS X v10.7.4.

share|improve this question

closed as not a real question by Spiff, Canadian Luke, 8088, Heptite, Randolph West Sep 14 '12 at 7:20

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This question seems very strange to me. I don't use OSX, but no software should ever require this under any operating system. – Heptite Sep 13 '12 at 22:05 is a hardware loop back feature of all ethernet cards. The only way to remove it is to pull the ethernet card out of your computer. Not really an option on a Mac. – James K Sep 13 '12 at 22:49
@JamesK, on my OSX box, I can run sudo ifconfig lo0, and the loopback goes away, but I can still ping other things. It is a pretty silly thing to do though. AFAIK, there is absolutely no good reason why you should ever need to disable the loopback interface. – Zoredache Sep 13 '12 at 23:09
@Zoredache - so that would seem to be the answer Mike is looking for. – James K Sep 14 '12 at 3:36

What it seem you are looking to do is edit your host file.

Step 1 – Open the

Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal.

Step 2 – Open the hosts file

Open the hosts by typing on the Terminal that you have just opened:

$ sudo nano /private/etc/hosts Type your user password when prompted.

Step 3 – Edit the hosts file

The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings. Simply edit/remove – localhost.

Step 4 – Save the hosts file

When done editing the hosts file, press control-o to save the file. Press enter on the filename prompt, and control-x to exit the editor.

Step 5 – Flush the DNS cache

On Leopard you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect:

1 $ dscacheutil -flushcache

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.