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 Win7 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 Win7 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
acurasd

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
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by jk1 View Post
Hi,

I have a Win7 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 Win7 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
chev65

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
Thread Forum
Cannot connect to a share database in BCM 2010
I am setting up a new share database to use with BCM 2010. I setup the new server 2008 R2 Installs SQL server 2008 express with management tools and called it MSSMLBIZ Install outlook 2010 and BCM and SQL 2008 express on a new windows 7 PC When I tried to connect my windows 7 pc to a new...
Microsoft Office
Connect to PW-protected Share with no User Name?
I have an old WD NetCenter network drive (drive is not shared thru a computer - but directly connected to the network via ethernet) which has two shares that are password protected. But, there is no user name and no way to add a user name to the shares - just a password. Under WinXP, it's...
Network & Sharing
Cannot connect to share by name, only by ip
Hi, i have acquired a laptop (xp home) and i have set up a shared folder on it, but the odd thing is i can only connect to the share if i give it a fixed ip on the lan, and enter the ip instead of the laptops name as the share address. example Do, map a network drive...and use......
Network & Sharing
Can't connect to WIN 2K Share
Hi I've installed Windows 7 on a machine on my home network. The network has several other machines with various OS's. Using the Win 7 machine I can connect to shares on my XP and Vista machines, but not to my 2 Windows 2000 Server machines. This is actually a big problem for me because one...
Network & Sharing
Can't connect to samba share via name; ip works
I'm unable to connect to a samba share on a FreeBSD (via FreeNAS) box when using the machine name. The message it gives me is "The account is not authorized to log in from this station". The share is in anonymous mode; there's on restrictions. If I try to connect to the same share via it's...
Network & Sharing
Can't connect to samba share
I'm trying to connect to a samba share hosted on OS X 10.4. The connection works fine, using my domain account to logon when using Windows XP (in fact, it automatically uses my domain credentials). However, if I try to use Windows 7 to connect, I get an access denied error, saying my...
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 20:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App