[Samba] getpeername failed. Error was Transport endpoint is not connected
nss_wins[31684]: getpeername failed. Error was Transport endpoint is not connected
If you have something like that in your log, that is because the Windows client attempting to connect to samba on ports 445 and 139.
the XP Pro PC Client attempts to initially communicate with the
server over both ports 445 and 139 and that whichever port responds first
is used for further communication.http://groups.google.com/group/linux.samba/msg/370a5eaded746ab2?pli=1
The workaround is either you disabled port 445 via iptables like the solution in here or simply by adding this line on your [global] stanza inside smb.conf
smb ports = 139
Edit:
Adding “smb ports = 139″ may decrease your samba share performance. If you’re ok with that error above filling up your log, then its not necessary to add smb ports in your smb.conf. Your choice
good article, problem solved
Thank’s a lot
sonny
November 1, 2011 at 2:23 pm
Thank you a lot for your solution. You can leave both ports but put 139 first for both windows and samba to be happy
.
smb ports = 139 445
Eugen Mitu
December 10, 2011 at 2:34 pm