How to define IP and hostname of another PC in Windows XP?

2

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?

Devyn

Posted 2010-06-18T13:10:13.233

Reputation:

Answers

8

The hosts file in Windows can be found at

%SYSTEMROOT%\system32\drivers\etc\hosts

this is typically:

C:\WINDOWS\system32\drivers\etc\hosts

The format in Windows is the same as in Linux.

Rob Levine

Posted 2010-06-18T13:10:13.233

Reputation: 389

1+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. – None – 2010-06-18T13:13:43.627

@Andras: Only for trivial questions. Anything remotely complicated can take hours or days or gather no good answers at all. – Joey – 2010-06-19T08:29:12.143