waspish_raccoon
Posts: 1
Joined: Thu Aug 06, 2020 12:01 pm

I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 12:27 pm

Good day. I use Raspberry Pi 3 B+ and I have problems connecting to a hidden network. On the Internet people write that I need to add a line in file "/etc/wpa_supplicant/wpa_supplicant.conf" :
"scan-ssid"
But unfortunately it doesn't work for me.
Here is my code:
""
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU
network={
ssid="My Hidden SSID"
scan_ssid=1
psk="My SSID's Password"
key_mgmt=WPA-PSK }
"

What should I do in this case? Thank you in advance.

:) :) Sorry for my English. I'm not English.

beta-tester
Posts: 1393
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 3:06 pm

don't you need also the bssid with the mac address of the adapter of the wifi you want to connect to (access point)?
bssid=<mac_of_access_point>

sudo iwlist wlan0 scan [essid <SSID>]
e.g.:

Code: Select all

sudo iwlist wlan0 scan essid "My Hidden SSID" | grep Address
Address: 01:23:45:67:89:AB
then bssid should be

Code: Select all

bssid=01:23:45:67:89:AB
Last edited by beta-tester on Thu Aug 06, 2020 3:28 pm, edited 1 time in total.
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

User avatar
kerry_s
Posts: 1580
Joined: Thu Jan 30, 2020 7:14 pm

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 3:16 pm

just run ' sudo raspi-config ' and manually enter the info in the network section.

JovianPyx
Posts: 132
Joined: Fri Nov 20, 2015 9:34 pm

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 3:24 pm

I had the same problem while trying to configure a pi-zero-w as a porch pirate camera. I have never been able to get a connection with disabled SSID broadcast.

So I just now tried both of the suggested fixes above and neither worked for me. I am in the USA if that might matter.

In a discussion elsewhere, it was said that broadcast disable doesn't give much additional security over WPA/WPA2, so I just leave broadcast on.

trejan
Posts: 2985
Joined: Tue Jul 02, 2019 2:28 pm

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 3:34 pm

JovianPyx wrote:
Thu Aug 06, 2020 3:24 pm
In a discussion elsewhere, it was said that broadcast disable doesn't give much additional security over WPA/WPA2, so I just leave broadcast on.
Disabling SSID broadcasting actually makes security worse. All of your devices need to do active probes to find the hidden SSID which means they're all broadcasting your SSID everywhere they go. Other management frames from your AP have the SSID in anyway.

User avatar
DougieLawson
Posts: 40214
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 7:04 pm

waspish_raccoon wrote:
Thu Aug 06, 2020 12:27 pm
Good day. I use Raspberry Pi 3 B+ and I have problems connecting to a hidden network. On the Internet people write that I need to add a line in file
Are you able to reconfigure the network AP to stop hiding the SSID? What reasons do you have for hiding it?
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

LTolledo
Posts: 4134
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 9:37 pm

unhide --- connect --- hide

simple enough?
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
HawaiianPi
Posts: 6001
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: I can't connect to a hidden network WiFi.

Thu Aug 06, 2020 11:21 pm

waspish_raccoon wrote:
Thu Aug 06, 2020 12:27 pm
What should I do in this case?
What you should do is unhide your SSID, because it's pointless to hide it. It doesn't make your network more secure, and as someone already explained, it can even hurt security.

Also, the wpa_supplicant.conf you posted looks very odd.

Mine looks like this:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
	ssid="WiFi SSID"
	psk="WPA/WPA2 passphrase"
}
Adding scan_ssid=1 to the network section should work for a hidden SSID (as far as I know).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Troubleshooting”