quinta-feira, 1 de junho de 2023

How to connect two Macs without a network | Macworld

When you purchase through links in our articles, we may earn a small commission. This doesn't affect our editorial independence.

A network is great, but what if you just want to connect two Macs and transfer gobs of information as fast as you can? Using a gigabit ethernet cable or a Mac with 802.11ac (Wi-Fi 5) or later wireless networking hardware, you can transfer data between two devices at gigabit per second rates—but you can do better than that!

Apple offers four built-in methods in macOS, none of which are obvious to set up. Each of them has different requirements, advantages, and tradeoffs. Once connected, you use the same tools to transfer information between two Macs as you would if they were connected to a network:

Here are the four methods, from fastest to slowest.

Thunderbolt has long included a computer-to-computer mode that allows a 10Gbps connection. While that’s a fraction of its current 40Gbps data path for drives, peripherals, and displays, it’s speedy enough! (This method works with Windows and other computers that have Thunderbolt support, too.)

In my testing using a Thunderbolt 4 cable between two M1 Macs, I was able to get 4Gbps of sustained writes and 8Gbps of sustained reads using a speed-testing app, and 5Gbps in copying large files from one Mac to the other. Both rates are far above gigabit ethernet.

It’s vitally important that you have a USB-C to USB-C cable designed for Thunderbolt 3 or 4. Buy it from a company that has a good track record, such as AnkerBelkinCalDigit, and Other World Computing, to name four of many. If you already own a USB-C cable, check that it has a lightning bolt symbol on plugs at both ends; it should also bear a 3 or 4, though Apple omits that, oddly enough. You don’t want a USB-C charge-only cable (typically unmarked ends) or a USB 3-only cable (typically a USB symbol and SuperSpeed+ or SS+, SS 10, or SS 20 label).

If you have one or two older Macs with Thunderbolt 2, you can use a Thunderbolt 2 to Thunderbolt 2 cable or a Thunderbolt 3 or 4 USB-C cable with a Thunderbolt 2 adapter on one end.

Here’s how to set it up:

To disconnect, simply unplug the Thunderbolt cable.

macOS can also automatically configure a network connection over ethernet between two Macs with the same outcome above: a self-assigned IP address. Some Macs—like the Mac Pro and Studio Mac—have built-in 10Gbps ethernet. Macs released in the last decade have 1Gbps ethernet, known as plain “gigabit ethernet.” To use 1Gbps ethernet, you need a cable rated as Category 5E (or Cat5E) or higher; for 10Gbps, at least Cat6. (If you want to use 10Gbps on a local network, you can get a 10 Gbps ethernet adapter for Thunderbolt 3 or 4 for a whopping $199.)

Open System Preferences/Settings > Network and make sure Ethernet appears in the list of interfaces. If not, follow the steps above for Thunderbolt to add an Ethernet interface. Connect the two Macs with the cable, and you’ll wind up as in step 4 above for a Thunderbolt cable.

You can connect with computers running other operating systems, as they generally also automatically create a self-assigned IP address and allow SMB and other networking services.

Performance should be up to 1Gbps with gigabit ethernet and match Thunderbolt performance with 10Gbps ethernet.

If there’s no Thunderbolt or ethernet cable handy and no Wi-Fi network nearby, you can use your Mac to create a Wi-Fi hotspot, once called a software base station. (Apple began including this feature decades ago.)

Read “How to share a Wi-Fi connection via macOS” on how to configure one Mac to offer such a network. You use System Preferences > Sharing rather than the Network preference pane. (Visit the Network preference pane and it shows Internet Sharing: On as the Network Name for the Wi-Fi adapter.) Your Mac also shows an upward-pointing arrow inside the Wi-Fi fan to indicate network sharing.

Once created, the Mac’s Wi-Fi network can be selected by any device with Wi-Fi. That includes Macs, gaming systems, Android phones, and anything else. Because this is a shared connection, the machine connected to your Mac will be assigned an IP address by your Mac.

With my Macs—an M1 MacBook Air and M1 Mac mini—I achieved between 100 and 200Mbps of throughput, about half what I could manage via a Wi-Fi network to a gigabit internet connection.

A Mac-created Wi-Fi hotspot is good in a pinch when no other network or cables are available, but an 802.11ac (Wi-Fi 5) or later Wi-Fi router can offer more throughput, often making it a better choice.

Disable the Wi-Fi hotspot by unchecking the Internet Sharing service in the left-hand list in System Preferences > Sharing.

As the last resort, you can revert to an older wireless method once known as ad hoc. It’s out of date and lacks Wi-Fi security. Still, it has very little overhead because it’s a peer-to-peer connection—just make sure nobody is in range who could sniff your unencrypted wireless data.

Your maximum throughput will be relatively low. I measured below 100Mbps, even lower on average than with a Mac-created Wi-Fi hotspot.

Follow these steps:

To disconnect, click the Wi-Fi symbol to the left of the network’s name on the Mac that’s sharing. Turn off the network on the Mac that’s sharing by clicking that Wi-Fi symbol under Device.

We’ve compiled a list of the questions we get asked most frequently, along with answers and links to columns: read our super FAQ to see if your question is covered. If not, we’re always looking for new problems to solve! Email yours to mac911@macworld.com, including screen captures as appropriate and whether you want your full name used. Not every question will be answered, we don’t reply to email, and we cannot provide direct troubleshooting advice.

Glenn Fleishman’s most recent books include Take Control of iOS and iPadOS Privacy and Security, Take Control of Calendar and Reminders, and Take Control of Securing Your Mac. In his spare time, he writes about printing and type history. He’s a senior contributor to Macworld, where he writes Mac 911.

Macworld Sweden

Macwelt Germany

Subscribe to the Macworld Digital Magazine

Manage Subscription

Newsletter

Nenhum comentário:

Postar um comentário