Samba server not showing up in network discovery in Windows 10

Windows 10 did not show my samba shares. The problem was not with my linux machine but with Windows 10. The fix is simple:

open incoming traffic for UDP 5353 in the Windows Firewall and your server will appear…