Greetingz!
If possible, find and copy the smb.conf file from your old Ubuntu installation to the new one.
Code:
find / -type f -name smb.conf 2>/dev/null
Also, check to see if
iptables is running in your old install (and if so, what the rules are).
Hope this helps!