Indra Satriani

I'm not a geek!

Posts Tagged ‘samba

[Samba] getpeername failed. Error was Transport endpoint is not connected

with 2 comments

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 🙂

Written by Indra Satriani

September 30, 2010 at 10:33 am

Posted in linux

Tagged with , ,