Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like to disconnect from my wifi network on OS X Lion.

I do not want to forget the network nor turn wifi off.
I just want to be able to connect and disconnect at will.
- How do I do this?

share|improve this question
1  
OS X Lion remembers the WiFi networks that you (successfully) logged into. The network name is stored in a .plist file and any password is stored (accessible using Keychain Access app). You should be able to connect and disconnect to your WiFi (provided it's on) at will. –  Global nomad Dec 8 '11 at 16:44
    
I think you need to clarify why you want to do this without turning off WiFi. –  Dustin Dec 8 '11 at 17:35

4 Answers 4

You can disconnect from the current wireless network without turning wireless off by running the following command on the command line:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
share|improve this answer
    
Thanks very much --- but is there seriously no way to do this from the GUI? –  David Given Aug 5 at 19:04

Would setting up different locations under Network preferences, each having different way out settings be an option? You'd 'sort of' be disconnecting.

share|improve this answer

I know that it's old question but maybe someone is looking for better solution. I've just found it: ⌥ + click on wifi icon

share|improve this answer

Your router may also offer a user interface which offers a way to disconnect from the wifi network. I just tested it out with mine and it worked fine. I also tested the command line prompt described above, and that worked, too.

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.