Wifi – Setup Ad-hoc WIFI from terminal in OS X

adhoc-networkmac-osxwifi

Is it possible to create a Ad-hoc Wifi network in OS X using the command line? Without using Apple Script to do it through the UI.

Best Answer

I've used sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -i[<arg>] to do the job. Take a look at /usr/sbin/networksetup to round out the solution.

Related Topic