Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can connect to share by IP but not computer name

04 May 2010   #1
jk1

Win 7
 
 
Can connect to share by IP but not computer name

Hi,

I have a Windows 7 home Premium box and I want to share folders and a printer with 2 XP laptops. I've turned off homegroups and all PCs are using the same workgroup.

One XP laptop can connect to the shared folders and printer with no problem and the shares appear in My Network places etc.

The other XP laptop ** can't ** connect via \\COMPUTERNAME (I get access denied error). Nor does anything show up in My Network Places. One way I can get it to connect is do this:

- Connect via IP - \\102.168.1.101
- a password box appears, so I enter the my user name and password for my Win 7 account (I don't have a password account set up on the XP laptop, but I am using the same username as on the Win 7 box)
- I can then see the shares on the Win 7 box
- If I then type \\COMPUTERNAME I can now connect to the Windows 7 box and access the shares and printer no problem. Also everything appears correctly in My Network Places

Any ideas on how I can fix things so that I don't have to go in via IP first would be much appreciated!



Cheers

JK


My System SpecsSystem Spec
.

04 May 2010   #2

Windows 7 Ultimate x64
 
 

This may sound silly suggestion to even post on Windows Reference but will help avoid some annoyance with Windows Vista and Windows 7. The host file is the one where one enters hostname and IP Address pair manually as against being served by a Name server (ex: DNS). As always the “host” file is under C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ and hence cannot be edited by normal users.

To edit the host file,
Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu, edit and save.

Work Cited

My System SpecsSystem Spec
04 May 2010   #3
jk1

Win 7
 
 

Quote   Quote: Originally Posted by acurasd View Post
This may sound silly suggestion to even post on Windows Reference but will help avoid some annoyance with Windows Vista and Windows 7. The host file is the one where one enters hostname and IP Address pair manually as against being served by a Name server (ex: DNS). As always the “host” file is under C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ and hence cannot be edited by normal users.

To edit the host file,
Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu, edit and save.

Work Cited

Thanks for this suggestion. I was hoping that I wouldn't have to configure the Windows box with a static IP. Is there a way to fix the actual problem rather than work round it?

Cheers

JK
My System SpecsSystem Spec
.


04 May 2010   #4

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by jk1 View Post
Hi,

I have a Windows 7 home Premium box and I want to share folders and a printer with 2 XP laptops. I've turned off homegroups and all PCs are using the same workgroup.

One XP laptop can connect to the shared folders and printer with no problem and the shares appear in My Network places etc.

The other XP laptop ** can't ** connect via \\COMPUTERNAME (I get access denied error). Nor does anything show up in My Network Places. One way I can get it to connect is do this:

- Connect via IP - \\102.168.1.101
- a password box appears, so I enter the my user name and password for my Win 7 account (I don't have a password account set up on the XP laptop, but I am using the same username as on the Win 7 box)
- I can then see the shares on the Win 7 box
- If I then type \\COMPUTERNAME I can now connect to the Windows 7 box and access the shares and printer no problem. Also everything appears correctly in My Network Places

Any ideas on how I can fix things so that I don't have to go in via IP first would be much appreciated!



Cheers

JK
For the access denied errors usually there is a problem under the Advanced Network settings page. Make sure they look like the pictures below on the Win 7 machine.

It sometimes helps to turn either off or on "try both ways" the password protected sharing feature.

If you get any password prompts after that do this on the XP machines.

Goto... Control Panel > Administrative Tools > Local Security Policy > Local Policies > Security Options

Scroll down to... Network Access: Sharing and security model for local accounts

Select... Guest only and not Classic. I checked on XP machine and Guest seems to be the default.

After going through all of that if you are still having file access problems try doing this registry adjustment on the Win 7 machine with the problem.

Solution is really easy just modify one key in registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
create or modify 32-bit DWORD: LocalAccountTokenFilterPolicy
set the value to: 1


Attached Thumbnails
Can connect to share by IP but not computer name-password-protected-sharing-off.jpg   Can connect to share by IP but not computer name-home-work-homegroup-enable.png  
My System SpecsSystem Spec
04 May 2010   #5
jk1

Win 7
 
 

Thanks for the suggestions. I'll try them out when I get home and post back the results.

Cheers

JK
My System SpecsSystem Spec
05 May 2010   #6
jk1

Win 7
 
 

Quote   Quote: Originally Posted by chev65 View Post
It sometimes helps to turn either off or on "try both ways" the password protected sharing feature.
Tried this but no difference.

Quote   Quote: Originally Posted by chev65 View Post

If you get any password prompts after that do this on the XP machines.

Goto... Control Panel > Administrative Tools > Local Security Policy > Local Policies > Security Options

Scroll down to... Network Access: Sharing and security model for local accounts

Select... Guest only and not Classic. I checked on XP machine and Guest seems to be the default.
Couldn't do the above, as I have XP Home edition.

Quote   Quote: Originally Posted by chev65 View Post

After going through all of that if you are still having file access problems try doing this registry adjustment on the Win 7 machine with the problem.

Solution is really easy just modify one key in registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
create or modify 32-bit DWORD: LocalAccountTokenFilterPolicy
set the value to: 1
Tried the above, but no difference.

Looks like I'm stuck with giving the Win 7 box a static IP and then shoving its name in the XP laptop's host file then.

Would be nice to know why it doesn't work though!
My System SpecsSystem Spec
05 May 2010   #7

Windows 7 Ult, Windows 8.1 Pro,
 
 

Oh it works perfectly I can assure you. Your first mistake was attempting to create a share the old fashioned way using \\computer name. This method is outdated and for good reason. I highly suggest you use the GUI to set shares up.

There are far too many good reasons for using the GUI for me to list here but to sum it up, permissions and security won't be set up correctly. This isn't windows 98.

Follow the one for XP set up and run the network set up wizard on both of your XP machines.
Sharing files and printers with different versions of Windows - Help & How-to - Microsoft Windows

If you are running ANY type of A/V software or third party firewall you will need to delate them and I mean completely.
My System SpecsSystem Spec
Reply

 Can connect to share by IP but not computer name




Thread Tools



Similar help and support threads for2: Can connect to share by IP but not computer name
Thread Forum
How would one share or connect to a network share from WinRE Network & Sharing
Can't share or connect to internet through LAN. Network & Sharing
Solved Connect to PW-protected Share with no User Name? Network & Sharing
Unable to connect to CIF share Network & Sharing
Cannot connect to share by name, only by ip Network & Sharing
Can't connect to WIN 2K Share Network & Sharing
Can't connect to samba share Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 07:57 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33