Create a computer-to-computer network on Mac
If you want to set up a temporary, ad hoc Wi-Fi connection between your Mac and another device, you can create your own network using the Wi-Fi menu.
Create an ad hoc network
On your Mac, click the Wi-Fi status icon in the menu bar, then choose Create Network.
If you don’t see the Create Network option in the Wi-Fi menu, see Enable legacy networks.
Enter a name and choose a channel for your network.
When you create a computer-to-computer network, the Wi-Fi menu icon changes to show a computer . The new network is available in the Devices section of the Wi-Fi menu. When you’re done, click the Wi-Fi menu again and choose Disconnect to close the network you created.
Enable legacy networks
On your Mac, choose Apple menu > System Preferences, then click Network.
In the service list on the left, select Wi-Fi, then click Advanced.
Select the “Show legacy networks and options” checkbox.
Click OK, then click Apply.