To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to open the samba configuration file:
sudo gedit /etc/samba/smb.conf
Finally, scroll down a bit in the file and find : WORKGROUP = Workgroup_Name.
Right below that, type the line shown below and save the file.
name resolve order = bcast host
Note: You may or may not have to reboot in order for this to take effect. In my case it worked immediately.