Cant connect to password protected wifi hotspot created by network-manager


I have created a wifi hotspot by using network-manager and protected it with “wpa & wpa2 personal” security, but i cant connected to it from my phone. If i create a hotspot without any security, then it works just fine. But for obvious reasons i dont want to create hostpot without any security.
What sould i do?


Hi @al0o0z

Maybe this will help you:

#sets the wifi interface to use
#driver to use, nl80211 works in most cases
#sets the ssid of the virtual wifi access point
#sets the mode of wifi, depends upon the devices you will be using. It can be a,b,g,n. Not all cards support 'n'.
#sets the channel for your wifi
#macaddr_acl sets options for mac address filtering. 0 means "accept unless in deny list"
#setting ignore_broadcast_ssid to 1 will disable the broadcasting of ssid
#Sets authentication algorithm
#1 - only open system authentication
#2 - both open system authentication and shared key authentication
#####Sets WPA and WPA2 authentication (remove this section if you don't need encryption)#####
#wpa option sets which wpa implementation to use
#1 - wpa only
#2 - wpa2 only
#3 - both
#sets wpa passphrase required by the clients to authenticate themselves on the network
#sets wpa key management
#sets encryption used by WPA
#sets encryption used by WPA2

I have extracted the info from here:

Although the guide is written a few years ago, it was updated in October 2018


Thanks for your reply.
I cant open up the link you provided for some unknown reason.
Where this setting is stored?
The connection settings in /etc/NetworkManager/system-connections differs from this format


Sorry @al0o0z. It would be in /etc/hostapd/hostapd.conf. A secure way for a hostpot is with hostapd to configure the authentication and with dnsmasq to assign ip address to the devices. This way has always worked for me


How to activate and deactivate this hotspot?


Start it with:

systemctl start hostapd

Enable it to start every boot with

systemctl enable hostapd

Or both at the same time with

systemctl enable --now hostapd

Stop & disable with

systemctl disable --now hostapd

Or just stop with

systemctl stop hostapd

Or just disable (while keeping it running) with

systemctl disable hostapd

For more on this see

Or if you prefer to dis-intermediate systemd then you could try the ExecStart line directly:

/usr/bin/hostapd /etc/hostapd/hostapd.conf

Then use pkill to, er, kill it (or send a SIGHUP to reload the configuration).

EDIT: there is also a natty command-line interface, if you are so inclined:


Check the man page for then nitty gritty.


Thanks a lot Negata & Head_on_a_stick for your help.


hotspotd is not in AUR, so then do i have to install it from git repo?
Or do you have any pkgbuild that you can share?


I’ve found this


I did see this, but i always hear people say it is bad to compile and and install from source in arch and it’s variants, so i thought you might have a PKGBUILD that i can use to install it. As i can’t make PKGBUILD.


There is also create_ap