Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to setup my mac as wifi-router. I want it to appear indistinguishable from a stand alone wifi-router. I don't want internet access.

Things I've tried.

  1. Turning on Internet Sharing

    Doesn't work AFAICT. Probably because I have no internet to share. I was hoping turning it on and picking something to share even if it's not connected to the internet would still make an SSID appear for other machines to connect but no such luck.

  2. Pick "Create Network..." from the network menu

    This gets an SSID to show up for other devices, specifically iOS. Unfortunately there is something special about them as they show up under a special "devices" section below the list of normal wifi hotspots. That's something I'm specifically trying to avoid.

I've noticed in Linux apparently a set of tools, iwconfig etc.. deal with this kind of stuff but I haven't found the equivalent on OSX.

share|improve this question
    
Are you connected to a WiFi network while you are doing this? If so, you cannot setup WiFi as a router if you need it connected to another WiFi network. Also, do you specifically need command line or any way to make WiFi routing work will do? –  edvinas.me Apr 15 at 6:34
    
No I'm not connected to a WiFi network. I want my mac to BE the WiFi network that other devices connect to. Right now I'm making due by hacking a router I own and setting up it's DHCP to point back to my Mac but I'd like to be able to use the Mac as the router. It doesn't have to be command line but I suspect I can't do it otherwise. This is relatively unique thing I'm trying to do. –  gman Apr 15 at 6:43

1 Answer 1

With this command you can start and stop the Internet sharing with the command line:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist

To stop, change the load to unload.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.