Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent SL connecting to known open WiFi Network
Say, one day you decide to connect your Macbook to some open WiFi router. Let's call it DUPA. DUPA does not require a password, gives you IP (by DHCP) but doesn't offer Internet connection. So, it's useless for you.

Then, you switch back to your home WiFi which is secured with WPA2 and has Internet. Next day, after busy work hours you are back at home and want to connect to your own WiFi. You open your Macbook and... it's automatically connected to DUPA instead of your WiFi! And it happens on next day and on next day, and so on.

It happened to me. I was sure I could delete the DUPA network from the Preferred Networks list in System Preferences » Network » AirPort, under the Advanced... button, but DUPA wasn't there.

The only way I found and which work is to open Terminal and put this:
sudo vim /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
Then you have to look for name of annoying SSID, in my case DUPA.

It could look like this:
<key>SSID_STR</key>
<string>DUPA</string>
<key>SecurityType</key>
<string>Open</string>
and change its 'Security Type' key from Open to WPA Personal, like this:
<key>SSID_STR</key>
<string>DUPA</string>
<key>SecurityType</key>
<string>WPA Personal</string>
Change all occurences of it for the offending network only. Save the file.

[crarko adds: I haven't tested this one. It's strange that the network didn't show up in the Preferred Networks list. I don't remember ever seeing that.]
    •    
  • Currently 2.75 / 5
  You rated: 3 / 5 (8 votes cast)
 
[6,531 views]  

Prevent SL connecting to known open WiFi | 10 comments | Create New Account
Click here to return to the 'Prevent SL connecting to known open WiFi' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent SL connecting to known open WiFi
Authored by: JackSloth on Oct 15, '10 07:52:43AM
Am I missing something? Can't you just go into the Network prefs and inside the airport advanced section just remove the unwanted wi-fi network from the list of "Preferred Networks"?

Or at the very least, reorder the list so that your home network is above the public wifi.
---
Mac computer tech support in Montreal
Edited on Oct 15, '10 07:55:06AM by JackSloth


[ Reply to This | # ]
Read the hint again
Authored by: hamarkus on Oct 15, '10 08:01:43AM

> I was sure I could delete the DUPA network from the Preferred Networks list in System Preferences Network AirPort, under the Advanced... button, but DUPA wasn't there.



[ Reply to This | # ]
Read the hint again
Authored by: JackSloth on Oct 15, '10 08:22:10AM

Sorry. My mistake. I missed that last line.

---
Mac computer tech support in Montreal



[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: DarthMagnus on Oct 15, '10 08:06:10AM

I've seen this a bunch lately dealing with wireless issues at our school, where the Network Preference Pane doesn't list the network but it is still saving the configuration in the plist file. There also seems to be somewhere else that some configuration information is being kept too, at least for the 802.1x authentication, but I haven't found out where yet.

It seems to me, though, that you could just remove the network from the plist file, rather than change it to have an authentication. Is there a reason why this wouldn't work?



[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: lar3ry on Oct 15, '10 09:06:02AM

How about the Key Chain?



[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: asmeurer on Oct 15, '10 08:23:28AM

Wouldn't it make sense to just delete all the DUPA keys from the plist?



[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: timcrawf on Oct 15, '10 09:17:25AM
If you don't want to go into Terminal, try this instead:
  1. Download Pref Setter (it's free).
  2. Find the same plist file, control-click and choose Open With Pref
  3. Setter.
  4. Use the search field to find the SSID of the network you want to delete.
  5. Find the entry under Known Networks and delete it.


[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: jwbales on Oct 15, '10 06:02:24PM
Assuming your AirPort is en1. Does the network show up with networksetup?
networksetup -listpreferredwirelessnetworks en1
If so:
networksetup -removepreferredwirelessnetwork en1 DUPA
else try:
networksetup -removeallpreferredwirelessnetworks en1
then add the WiFi networks you want.
---
John


[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: 010111 on Oct 17, '10 12:13:48AM

i have a similar issue...

i have a dual-band Airport. with both a 2.4GHz and a 5Ghz network.

that means i have NETWORK and then NETWORK (5 GHz) ... *frequently* it picks the non-N 2.4Ghz network when i come home. it'll be fine for a few days... then randomly use the wrong one.

i've deleted it from the list a thousand times... it still ends up using it sometimes though. getting very annoying. "Remember networks..." is unchecked. the non-5Ghz network is not in the list. but it still sometimes uses it. very annoying.



[ Reply to This | # ]
Prevent SL connecting to known open WiFi
Authored by: sdagley on Oct 17, '10 06:57:10PM

The Preferred Networks list sometimes fails to display a scroll bar when you have more than 4 networks saved, so you may think the network you want to get rid of isn't there, but the reality is you just can't see it. Click on one of the networks that is listed, then use the down arrow on the keyboard to scroll down the list of networks that aren't shown until you find the one you want to get rid of



[ Reply to This | # ]