The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Can anyone shed some light on Windows file sharing?

LoneIgadzraLoneIgadzra Registered User regular
I'm always trying to get this to work and failure is pretty much constant. I've thrown my hands in the air in defeat more times than I can count trying to get one PC (typically running Windows XP) to connect to another's network share. Is there some surefire procedure to make this piece of shit protocol not just sit there indefinitely (with explorer hung) before finally giving me an error?

Why do shares sometimes show up in My Network Places and sometimes not? How come when my friend turns on a share on his laptop I can't connect at all even though I've checked the firewall and and made sure all computers have the same workgroup and everything?

How come sometimes I can't connect to the samba share on my MacBook from a PC, even though it worked last time and I changed nothing?

How come when I changed the password on one of my computers, my roommate's computer that had the old password saved can no longer connect and yet is too dumb to prompt for the password again and just hangs for five minutes?

How come sometimes when I try to connect to a share despite having the right address and username/password, it fails completely and asks me for "MYCOMPUTER\username" and a password and then still doesn't work. What the fuck is that about? The name on the account isn't "MYCOMPUTER\username".

So basically Windows file sharing randomly fails to work with no explanation all the goddamn time. Am I doing something wrong?

Oh yeah, and in a great fit of irony, the only computer than I can reliably connect to Windows shares from is my MacBook.

LoneIgadzra on

Posts

  • wha???wha??? Registered User regular
    edited May 2008
    I will pay close attention to this, as I also get the stinging feeling of being skull fucked by windows file sharing...

    wha??? on
    sig.php?user=wha
  • DaedalusDaedalus Registered User regular
    edited May 2008
    On Windows XP Home, sometimes you need to enable the guest account to get shares to work without demanding a password.

    And yes, it's hilarious that "Windows" shares work more reliably from MacOS and Linux than they do from Windows.

    Daedalus on
  • ToyDToyD Registered User regular
    edited May 2008
    I dunno, I've not had that much of a problem with sharing stuff once I got into it. The biggest problem is permissions really.

    I use xp exclusively at the moment, no vista so I can't help anyone there. But I set very specific permissions and have no issues.

    The basics are, of course, same workgroup, make sure your firewall is going to allow the windows file sharing to pass and all requests in.

    Then, if you really want to dig into it, go to any explorer window, Tools->Folder Options->View and uncheck Use Simple File Sharing.

    Then you can really dive in and set all your security and permissions correctly. Then just reboot and voila. But make absolutely sure you rename, disable, and password default guest and admin accounts.

    ToyD on
    steam_sig.png
  • LoneIgadzraLoneIgadzra Registered User regular
    edited May 2008
    Yeah, I have Pro and do the complex permission thing, but it just doesn't work reliably. A lot of times it does, but it also happens at least once a week that I'll type the name of a computer (because as usual, the share I need isn't showing up in My Network Places) like so "\\comp" and get nothing except a hung explorer for 5 minutes and an eventual error, even though "comp" is plugged into the network, it does have the right workgroup, it did work last time, and "comp" is its name.

    LoneIgadzra on
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited May 2008
    Oh god, the goddamn pain in the butthole that "file sharing" in Windows is.

    Last time I spent 20 minutes fuming and then set up an ssh/rsync server so I could just scp stuff between computers.

    Echo on
  • ToyDToyD Registered User regular
    edited May 2008
    Honestly, it sounds more like your router forgetting it's routing tables. Or XP is preserving them too long. Do you assign dynamic IPs in your internal network? Do you often end up with different IPs on different machines as you turn them on and off?

    ToyD on
    steam_sig.png
  • LoneIgadzraLoneIgadzra Registered User regular
    edited May 2008
    ToyD wrote: »
    Honestly, it sounds more like your router forgetting it's routing tables. Or XP is preserving them too long. Do you assign dynamic IPs in your internal network? Do you often end up with different IPs on different machines as you turn them on and off?

    Yes, IP's are dynamic so we don't have to change configurations on Windows machines all the time (as XP lacks a profile manager for moving between networks - way to go go Microsoft for not copying a feature that was in Mac OS 9!) and anyway this problem happens on most any router I've used.

    LoneIgadzra on
  • ToyDToyD Registered User regular
    edited May 2008
    Do you have a router that will let you specify static IP addresses to give to machines based on their MAC address?

    ToyD on
    steam_sig.png
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited May 2008
    as XP lacks a profile manager for moving between networks - way to go go Microsoft for not copying a feature that was in Mac OS 9!

    Actually, I think it's because Apple patented it.

    Echo on
  • ToyDToyD Registered User regular
    edited May 2008
    Also, as an alternative to assigning static IPs out of your router, a google search has revealed this solution to many of these problems users have:

    try adding this protocals on both computers
    NWlinknetbio's
    netbios compatible transport protocal
    nwlink ipx/spx
    then run network set up again

    pulled that directly from: http://forums.speedguide.net/showthread.php?s=&threadid=103569


    Personally, I use my router to assign all my devices a static IP based on MAC address. This allows me to briefly glance at a list of IPs on my network and know if something doesn't belong. I've not had problems yet with windows machines finding each other and I don't have to install extra networking protocols on install.

    Up to you to pick which solution you'd like.

    ToyD on
    steam_sig.png
  • LoneIgadzraLoneIgadzra Registered User regular
    edited May 2008
    I do the static IP based on MAC thing at home (with computers set to DHCP) on a WRT-54G with DDWRT installed. However, there isn't a way for me to do that with the Verizon-provided piece of shit Versalink router at my apartment that I can see. I'll look into it when I go back though.

    LoneIgadzra on
  • LaCabraLaCabra MelbourneRegistered User regular
    edited May 2008
    since when does windows file sharing suck? i've never had it not work. Well, except My Network Places crashes a lot.

    LaCabra on
  • FatmanGamesFatmanGames Registered User regular
    edited May 2008
    Are you guys fucking kidding me? Windows file sharing is easy as shit.


    Yes, I've been drinking. No, I've never ever, not even once, had a problem with Windows sharing. I've been using it since 1995.

    Are you looking at the Security tab as well as the Sharing tab? Are you high while working on your PCs? Does your software firewall block the sharing?

    I'm sorry, I don't mean to be a dick, I know I am being one. But SERIOUSLY. This isn't like shell scripting. This is something my MOTHER does... without instruction.

    Yeah. I'll probably edit these posts tomorrow. Woo.

    FatmanGames on
  • LaCabraLaCabra MelbourneRegistered User regular
    edited May 2008
    i'm with you on this one

    LaCabra on
  • LoneIgadzraLoneIgadzra Registered User regular
    edited May 2008
    Oh sure I have one "server" computer (big hard drive etc etc) that it pretty much works just fine with, but all the usual issues hold true in that its shares never seem to be refreshed in My Network Places on other machines, and pretty much all the freezing I mentioned in the OP. Explorer loves to hang when browsing network shares. This is universal on every PC I've ever used, even if it actually eventually works.

    Also, the password thing (showcasing Microsoft's incredible attention to detail), and what is wrong with my MacBook Pro's samba server that my PC's can't connect at random times?

    LoneIgadzra on
  • Epyon9283Epyon9283 Registered User regular
    edited May 2008
    ToyD wrote: »
    Honestly, it sounds more like your router forgetting it's routing tables. Or XP is preserving them too long. Do you assign dynamic IPs in your internal network? Do you often end up with different IPs on different machines as you turn them on and off?

    That makes no sense. If two machines are on the same subnet then the router's routing tables has nothing to do with anything. The PCs will never contact the default gateway since they both have routes already configured automagically for the local subnet to send traffic directly out on the interface.

    Windows is supposed to figure out IP address of machines using NBT. The machines do a broadcast to the local subnet and other machines respond. They figure out who the master browser is going to be. That one keeps a list of the machines. This is what screws up most of the time in Windows file sharing. Computers don't "see" the other machines on the network in network neighborhood.

    If you try connecting using the UNC path to the share it works fine almost all the time. If the name doesn't work, use the IP address. When you try connecting via UNC using the computer name it does a broadcast to the local subnet and if the other machine isn't screwed up it should reply with it's name.

    This all breaks of course if you have a more complicated network with multiple subnets. Then you need a WINS server for name resolution.

    Name resolution through this crap also breaks comically if the host name of your computer is 16 characters. Netbios names have a 16 character limit but the 16th character is reserved. This breaks 16 character names. Even if the names have periods in them so as to clue Windows into the fact that it should use DNS to resolve them it can still screw up the name resolution stuff that the file sharing garbage uses.

    I've learned that unless my Windows machine is in a domain to always just type the UNC path to the share I want to connect to. Using the network icon to try and locate the machines breaks so frequently as to be almost useless. Its especially useless if the machines happen to be in different workgroups.

    Epyon9283 on
Sign In or Register to comment.