If both computers are using macOS Sierra or later, just make sure that they're near each other and have Wi-Fi turned on. If either is using OS X El Capitan or earlier, connect them to the same network using Wi-Fi or Ethernet.
I would connect both Macs to your network using a wired ethernet connection. A wifi connection will work but a wired connection is faster. You can use Target Disk mode. as in one of the links above but you will have to purchase cables/adapters to use that method and I do not think that is cost effective unless you plan on using the adapters for another purpose.