we set the localmachine name to the clients ip_addr when it sends *SMBSERVER or *SMBSERV in lib/substitude.c set_local_machine_name(): if ( strequal(tmp_local_machine, "*SMBSERVER") || strequal(tmp_local_machine, "*SMBSERV") ) { fstrcpy( local_machine, client_socket_addr() ); return; } this sound be the local ip not the one from the client! comment from tridge on irc: <@tridge> but as clients mostly use 445 now, this stuff is almost useless <@tridge> we need to get the server name from session setup
*** This bug has been marked as a duplicate of 1519 ***