Share WiFi connection to other devices

Hi everyone,


I've searched for days and days for this without finding a solution...

Is it possible to share the WiFi connection of a Mac to other devices? Creating a hotspot.


I know we can open the Sharing panel in System Preferences and share a connection from Ethernet to WiFi.
But that's not what I need. I need to share the WiFi connection to another WiFi network, so I can stay connected to the internet while creating another WiFi network.

This can be done SUPER easily on Windows using:

netsh wlan set hostednetwork mode=allow ssid=MyWifi key=12345678

netsh wlan start hostednetwork


Even if there is no API to do that, at least if there's a way to do that "manually" going through some System Preferences options?


Thanks in advance...

  1. Open Sharing preferences if it isn’t already open (choose Apple menu > System Preferences, then click Sharing).
  2. Click the “Share your connection from” pop-up menu, then choose the Internet connection you want to share.
  3. Select how you want to share your Internet connection in the “To computers using” list. For example, if you want to share your Internet connection over Wi-Fi, select Wi-Fi. If you share your Internet connection using Wi-Fi, deselect the Internet Sharing checkbox, click Wi-Fi Options, give your (new/created) network a name and password, then select the Internet Sharing checkbox again.

Note: If your Internet connection and your local network use the same port (Ethernet, for example), investigate possible side effects before you turn on Internet sharing.


I don't know if there is a public API that would allow your app to do this.

Share WiFi connection to other devices
 
 
Q