Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my local network, I can type the IP address of a computer like so: \\xxx.xxx.xxx.xxx and access the shared files/printers of that computer.

But when I try by computer name, it does not let me. Any reason why?

share|improve this question
    
possible duplicate: superuser.com/q/104075/179299 –  Lorenzo Von Matterhorn Mar 14 '13 at 22:55
    
tried that and it did not work –  e-zero Mar 14 '13 at 23:05
    
How are you expecting it to work? –  David Schwartz Mar 14 '13 at 23:06
    
As stated above, I want to be able to type \\computer-name and be able to access shared files/printers of that computer. At this moment, accessing shared files/printers of a computer only works when I type ip address like this: \\xxx.xxx.xxx.xxx –  e-zero Mar 14 '13 at 23:08
1  
What have you done to make the computers "know" each other's names? Do you have DNS configured? hosts files? –  Scott Mar 14 '13 at 23:12

1 Answer 1

Easiest fix is you edit your hosts file (%windows%\system32\drivers\etc) in your favorite text editor to add the other machines on your network in the following format:

IP HOSTNAME (IP and hostname need to be separated by at least one space (I use a single tab)

Save and exit and you should be good.

share|improve this answer
1  
This is not a good fix if the network is using DHCP. –  Scott Mar 20 '13 at 15:30
    
Actually, it is. Most home use routers in my experience assign the same IP to a host. –  Sarge Mar 20 '13 at 23:31
    
No its not @Sarge, you cannot guarantee that the IP will stay the same. If it does stay the same for a while, that's even worse as it's easy for people to forget changes made to the HOSTS file. Most routers allow MAC addresses to be assigned a fixed IP under DHCP which fixes that part but that doesn't resolve the fact that this should work without hacks. –  Julian Knight Mar 21 '13 at 21:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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