Benches Networking

9

K Connect to server works, but Windows SHARED ...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I hope this helps others:
My network has one Leopard and two Windows XP's, one of which would always show up within approximately 5 minutes in the Finder right column under SHARED, but the other never would. Both were accessible if I performed an K to smb://<ip address>. I finally found the difference and now both appear in SHARED.
On the Windows machine goto ControlPanel>NetworkConnections and right click for Properties on the connection being used in the network. In the Properties dialog select the Properties button for the 'Internet Protocol(TCP/IP)' line item. In the TCP/IP Properties under the General tab select 'Advanced' at the bottom of the dialog panel. Then select the WINS tab. Uncheck 'Enable LMHOSTS lookup' (this may have an adverse effect if your network relies on it) and check 'Enable NetBIOS over TCP/IP'. If 'Default' is checked sharing worked fine between the Windows systems, but Leopard never listed the SHARED in Finder.
After making the change I restarted Windows and Leopard, and the Shares were finally listed in Finder.

9 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Unfortunately, that IS how my WIndows machine is configured, and it stopped working after the 10.5.2 update.

    So did my Hammer NAS server.

    So did my Linux Samba server.

    All of them serve up CIFS/SMB shares perfectly, and the Mac could see them until the update was installed.

    I can't figure out why it would stop working when others report it still works for them.

    10.5.2 has some good fixes, but a lot is still wrong.

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    If you want to debug this, open the Terminal application and type the following command while connected to your network.

    *nmblookup -M -- -.*

    If the above command returns a list of IP addresses, run this next command, once for each IP address.

    *smbclient -g -p 139 -NL "IP address from the nmblookup command" -U%*

    Post the results from running all the commands.

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    nmblookup returns absolutely nothing using the options you suggested.

    If I specifically query the local group leader or the domain, it can see my NAS server (I have a Hammer NAS server as my workgroup leader). I get a correct listing of the machine and group names hosted at that IP.

    I can specifically query it for services too, and they are listed: the name of the Hammer device, its print server details, workgroups, and Samba details. However, it doesn't list file shares (even though I can use them) and it doesn't show disk configuration.

    I run some UNIX Samba servers too, and I could manually configure the Mac, but that kind of misses the point of having Finder and the MacOS services do the work for you.

    The low level tools work if you give specific SMB server details, but their scanning functions seem to find nothing.

    That's probably near the root of the problem and explains why I can still manually connect, but that shares no longer show up automatically.

    Let me know if you have some ideas.

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    So the problem is that you don't have a NetBIOS Master Browser on your network. You can enable your Mac to be a Master Browser by editing some config files, or you can use one of your Samba boxes, but without at least one Master Browser, you won't be discovering anything.

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    So you are saying that installing 10.5.2 on the Mac, destroyed the previous master browser or something like that, and that somehow it is causing the Mac to see nothing, but still allowing the other clients to see shares?

    That's confusing...

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Note, I do not have a master browser on my network and shares now work for all PC's. Also note that I had to check the 'Enable NetBIOS over TCP/IP' on both the PC's. Having 'Default' checked on either PC somehow interfered with shares showing on the Mac for the other if both PC's were on the network at the same time.

  7. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Checking the "Enable NetBIOS over TCP/IP" checkbox probably enabled your PC to be the Master Browser. Either way, you always need to make sure "Enable NetBIOS over TCP/IP" is checked on your PC if you want your PC to show up in the Finder sidebar on your Mac.

  8. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    OK, I've played with your nmblookup command and have found that when Leopard decides it must become the master (usually after 5 minutes on the network by itself, using the standard smb.conf file), then the XP's will never get listed in Shares. However, if one of the XP's becomes the master first, then both XP's get listed after a maximum of five minutes after they come onto the network. If I modify smb.conf to make Leopard master then I get this error when a XP joins the network.
    2008/02/14 11:53:57, 0, pid=79 /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbdincomingrequests.c:process_name_refreshrequest(173)
    Error - should be sent to WINS server
    It seems that the XP's can resolve each other's names, but Leopard can't. Any comments?

  9. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I found that the WINS error was because /etc/smb.conf includes /var/db/smb.conf which has a 'wins support = no' line in it.
    I also found that if I prevent Leopard from becoming the local master, Windows shares always appear in Finder within 5 minutes of the PC coming onto the network. To accomplish this I added the following to /etc/smb.conf:
    os level = 0
    local master = no
    Note, the default smb.conf sets 'os level = 2'.
    This from the Samba doc explains the 5 minutes:
    +It is possible to configure two Samba servers to attempt to become the DMB for a domain. The first server that comes up will be the DMB. All other Samba servers will attempt to become the DMB every *5 minutes*. They will find that another Samba server is already the DMB and will fail. This provides automatic redundancy should the current DMB fail. The network bandwidth overhead of browser elections is relatively small, requiring approximately four UDP packets per machine per election. The maximum size of a UDP packet is 576 bytes.+

    Message was edited by: xnav