smbclient -M sends NetBIOS session service header to port 445

Steve Langasek vorlon at
Mon Jan 6 15:18:00 GMT 2003

If Samba is configured to try port 445 first, the 'smbclient -M' command
can't send messages to Win2K machines:

$ smbclient -M server -p 445
added interface ip= bcast= nmask=
Got a positive name query response from ( )
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
message start: Read error: Connection reset by peer

Ethereal shows that the packets sent by Samba include a 'Netbios Session
Service' header.  Is this the cause of the failure, or is the Windows
messaging service inextricably bound to NetBIOS?  In the former case,
where would I look in the code to remove the NetBIOS header from the

Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list