Hello, I have been trying to make my laptop wifi hotspot work at my dorm, since we cannot have routers here.
I am using KDE Plasma and I have tried both the built-in hotspot and linux-wifi-hotspot.
My phone cannot even connect to the built-in hotspot, saying that Network Does not Exist, that is when using password.
When not using password, it connects and says No Data Connection.
linux-wifi-hotspot is in a similar vein. I can create the hotspot, either through the gui or cli, but my phone gets stuck in a connection loop. What I mean is, the network is recognized but it does not connect even if it tries to.
Edit: For additional information, I have installed EndeavourOS recently for up-to-date packages after using Ubuntu and Debian for multiple years, where this worked fine.
I have solved this already, but keeping it up since it can be useful in the future.
Small clarification - I don’t know if the firewall is from plasma or the OS itself.
Solution #1 - Plasma Built-in Hotspot: I didn’t know that plasma nowadays has a built-in firewall. I have been using ufw for a long time, so I installed it when I installed the OS. Disabling and uninstalling it solved the issue for the built-in hotspot.
Solution #2 - linux-wifi-hotspot: Due to the firewall inside plasma it does not work and the hotspot needs to be allowed inside of it.
Plasma 6 nowadays has a built-in firewall, so if something does not work with your hotspot, you most likely installed ufw or another firewall. Uninstall it.
Linux Wifi Hotspot
Plasma 6 Firewall by default does not allow Linux Wifi Hostspot to work.
You need to run the commands:
and replace <ap_iface> with your wifi interface (most likely wlan0 or wlo1), <internet_iface> with your internet source so an ethernet interface (in my case enp3s0).
These commands add the required rules to the firewall for Linux Wifi Hotspot to work, but the rules will reset every reboot.
As a workaround to this, you can save these commands to a file (maybe like in ~/.local/bin/hotspot-fw and make it executable (ex. chmod +x ~/.local/bin/hotspot-fw).
The you create a new service file under /etc/systemd/system: