When you connect your Mac to a server, you can copy files to your computer from another Mac, which means you can exchange large files or access files from another network. You can connect to almost any macOS or Windows server on your network (if file sharing is enabled on the server).
Steps
Method 1 of 4: Using the Finder

Step 1. Open a Finder window on your Mac

Step 2. Click Go> Connect to Server

Step 3. Click Browse and then click the server name in the left pane of the Finder window

Step 4. Click "Connect As" and then enter your username and password (in the corresponding lines)

Step 5. Click "Connect"
The computer will connect to the selected server.
Method 2 of 4: Using the server address

Step 1. Open a Finder window on your Mac

Step 2. Click Go> Connect to Server.

3 Enter the server address in the "Server Address" line. The network address must include the protocol (such as afp: // or smb: // depending on the server type), DNS, and the path to the computer.

Step 4. Click "Connect" and then enter your username and password (in the appropriate lines)
The computer will connect to the selected server.
Method 3 of 4: How to reconnect to the server

Step 1. Open the Apple menu and click Recent Items

Step 2. Click on the name of the server to which you recently connected
The computer connects to this server, and the server's files appear in a new Finder window.
Method 4 of 4: Using AppleScript

Step 1. Open the Applications folder and click on Utilities

Step 2. Open a terminal.

3 Enter the command in the terminal. Command: tell app "Finder" to open location "protocol: // username: password @ server / share"

Step 4. Press "Enter" to execute the command
The computer will connect to the specified server.