Can connect to share by IP but not computer name


  1. jk1
    Posts : 4
    Win 7
       #1

    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 Computer


  2. Posts : 972
    Windows 7 Ultimate x64
       #2

    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 Computer


  3. jk1
    Posts : 4
    Win 7
    Thread Starter
       #3

    acurasd said:
    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 Computer


  4. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #4

    jk1 said:
    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 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 Computer


  5. jk1
    Posts : 4
    Win 7
    Thread Starter
       #5

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

    Cheers

    JK
      My Computer


  6. jk1
    Posts : 4
    Win 7
    Thread Starter
       #6

    chev65 said:
    It sometimes helps to turn either off or on "try both ways" the password protected sharing feature.
    Tried this but no difference.

    chev65 said:

    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.

    chev65 said:

    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 Computer


  7. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #7

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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:12.
Find Us