There is no trick for this.
Most probably you are trying to access the shared folders via name which cannot be resolved.
You can try to access them via IP address, or make sure you access them via FQDN which can be resolved.
Also, worth looking if there are any group policies/firewall rules which will block port 445.