[global] datagram port = 170 dgram port = 170 # older syntax Then restart Samba:
[global] disable netbios = yes smb ports = 445 Despite Microsoft’s deprecation of SMB1 and NetBIOS, countless embedded devices, medical imaging systems, and CNC machines still speak only NetBIOS over UDP ports 137/138 (or custom variants like port 170). For those administrators, SMBd remains a lifeline. Part 6: Troubleshooting Port 170 in SMBd 6.1 Verifying That SMBd/NMBd Is Listening Use netstat or ss : smbd 170
sudo ss -ulnp | grep :170 Expected output: [global] datagram port = 170 dgram port =