There are several causes that can cause this particular problem ranging from the third party antivirus programs installed on your computer, firewall port issues or server connection problem. But ...
The macOS Finder provides a variety of easy server connection options. Here's how to use the Connect to Server window in Finder to easily mount and use remote network volumes as if they were local ...