Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

in Mac or Linux, we can simply define IP and hostname in /etc/hosts. Then we can call another local computer with hostname (not with IP) we defined. But in windows, How can I do that? Where can I edit such configuration?

share|improve this question

migrated from Jun 19 '10 at 2:20

This question came from our site for professional and enthusiast programmers.

The hosts file in Windows can be found at


this is typically:


The format in Windows is the same as in Linux.

share|improve this answer
+1 - 26 seconds earlier? That means it took me 26 seconds to write my answer too. Don't you just love how realtime SO is. It rocks. – Andras Zoltan Jun 18 '10 at 13:13
@Andras: Only for trivial questions. Anything remotely complicated can take hours or days or gather no good answers at all. – Joey Jun 19 '10 at 8:29

You must log in to answer this question.