How to Create and Use an Ad Hoc Network on Your Mac

| How-To

OS X has the capability of creating what is commonly referred to as an ad hoc network. It’s a decentralized wireless network – that is, no router required.

Before writing this short how-to, I was curious as to the actual definition of the expression “ad hoc.” According to OS X’s built-in New Oxford American Dictionary, it’s an adjective that means "done for a particular reason."

Nowadays, many of us are able to take for granted the availability of Wi-Fi networks. One of the last bastions of Wi-Fi-free environments – the airliner – is joining in on the fun of ubiquitous Internet.

Nevertheless, there are times when you do not have a network connection of any sort. You need to get one or more devices talking – perhaps for sharing or transferring files, playing your favorite multiplayer network game, or using OS X’s AirPlay functionality for such things as classroom visualization of an iOS device on a Mac screen.

And so, we’ve established our “particular reason” to create a Wi-Fi network for a one-time use. OS X lets us do this quite easily. Apple’s official name is Computer-to-Computer Network, but I’ll go by the more common moniker, Ad Hoc Network.

You can create an ad hoc network between two or more computers and hand-held devices without using an AirPort Base Station or other router. It’s all done on the Mac; let me show you how.

The Wi-Fi Status menu.

You create an ad hoc network via the Mac’s Wi-Fi Status menu.

1. From the Wi-Fi Status icon in the menu bar, choose Create Network. If the icon is missing from the menu bar, go to System Preferences > Network. Click Wi-Fi and select the Show Wi-Fi status in menu bar checkbox.

2. Give your ad hoc network a name, or accept the default which is your computer’s name (found in the Share Preferences panel).

The Create a Computer-to-Computer Network panel.

You configure your ad hoc network via the Create a Computer-to-Computer Network panel.

Additionally, you can specify a Wi-Fi channel from the pop-up menu. The default channel is 11, but if you think there may be reception problems from adjoining networks, you can choose a different channel.

3. Select the level of security for your ad hoc network.

The Security pop-up menu allows you to select password encryption. Ad hoc networks are not compatible with WPA or WPA2 protected networks. The only security protocol supported is the vintage WEP encryption, but it’s better than nothing. For short-term use, I don’t bother, as there are other measures in place that will keep out any prying eyes.

If choosing 40-bit WEP encryption, you must type a password of exactly 5 characters. This ensures better compatibility for many older devices that need to connect to the ad hoc network. The 128-bit WEP choice is somewhat more secure, and you need to use a password that consists of exactly 13 characters.

The Wi-Fi Status menu with the new ad-hoc network icon appearing in the menu bar.

The Mac’s menu bar displays a new icon, and the ad hoc network is selected.

When you’ve activated your ad hoc network, you will see a new icon replacing the usual Wi-Fi icon in the menu bar. It’s important to note that once you’re on your ad hoc network, you are no longer connected to the Wi-Fi network you were using previously. This means that if you were enjoying an Internet connection, you will loose that connectivity until you switch off your ad hoc network.

Other Wi-Fi-enabled computers and hand-held devices that are within range can join your ad hoc network by choosing it from their Wi-Fi status icon.

In iOS, select the ad hoc network in the Wi-Fi Settings panel.

For iOS devices, go to Settings > Wi-Fi, and select the ad hoc network by tapping on it. In a moment or two, you should see a checkmark next to the ad hoc network name, indicating a successful connection. Note that you will not see the familiar Wi-Fi icon in the device’s status bar when connected to an ad hoc network.

Detail from the Mac’s Wi-Fi Status menu highlighting the command that lets you disconnect from the ad hoc network.

Select the Disconnect command underneath the ad hoc network’s name in the Mac’s Wi-Fi Status menu.

As previously alluded, leaving your ad hoc network enabled is a security risk. To disable it, go to the Wi-Fi status menu and select the Disconnect command, which is directly beneath the name of your ad hoc network in the menu’s Devices section. Alternatively, simply select another Wi-Fi network to connect to.

Finally, it should be noted that once you disconnect the ad hoc network on your Mac, it is permanently deleted. Next time you need to establish an ad hoc network, you must create it from scratch using the same procedures.

Be sure to check out OS X’s ad hoc network feature next time you need to set up your own private Wi-Fi network no matter where you might find yourself.

Sign Up for the Newsletter

Join the TMO Express Daily Newsletter to get the latest Mac headlines in your e-mail every weekday.

4 Comments

Frank Lowney 1

There are a few locations where this might not work.  I found myself in such a place, a high security environment that would allow hard wired (ethernet) access to my MacBook Pro but would not allow me to share that with WiFi devices such as my iPod touch via ad hoc networking.  Apparently the root cause was the way that they had configured their router.

iJack

:Apparently the root cause was the way that they had configured their router.”

Except the article says no router required.

kevinlane

I know what you mean, Frank, as I used to share my internet connection by creating an ad hoc network with my MacBook Pro at my place of work (an elementary school) so that I could configure an Apple TV that, otherwise could not get past our firewall splash page login. Now that workflow no longer works on the school network, thanks to our overzealous IT department.

jansenjan

It is never recommended to run a WEP network.
Attackers can easily compromise it very fast in like 30 seconds.

Wondering if Apple allows wpa2 in Mavericks?

Log-in to comment