lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.01k stars 278 forks source link

Can't connect to created network #374

Open gravit22 opened 5 months ago

gravit22 commented 5 months ago

Describe the bug When I create hotspot with this program, I can't connect to it. When I try to connect with mobile phone it says "Obtaining IP address..." and then just switch to "Saved" after a minute. On laptop it says "Activation of network connection failed" after a minute or so. But when I try to create hotspot with my ordinary Ubuntu Hotspot creator it works. It went like that when I tried to make port forwarding with iptables following this instruction https://tecadmin.net/setting-up-a-port-forwarding-using-iptables-in-linux/?fbclid=IwAR2vyW9fDs_NBimuu8lTKEBdTJHAbtawhWFcRDSY8ARMWWaUAEsqndYq3jk on my PC, but I didn't make permanent changes, and after restart it should work. Before that it worked with this program as well

To Reproduce I don't know how to reproduce on your PC

Expected behavior I expected it to connect

Screenshots This is what program shows when I try to connect, and then it just removes everything image

Desktop (please complete the following information):

Additional context I have onboard(on motherboard) wifi router. Also I need this program for my phone to connect(I don't know why). hotspot created by my ordinary ubuntu manager is not seen by my phone but is seen by my laptop for example. And this program helps my phone to see my Wifi network

Thank you for your attention

Besix2 commented 4 months ago

Having the same problem on raspberry pi. It stay connected for a few seconds and then it cuts the connection. wlan0: STA 3e:24:c3:7c:df:61 RADIUS: starting accounting session DD9714C5B6D9711C wlan0: STA 3e:24:c3:7c:df:61 IEEE 802.11: disassociated wlan0: AP-STA-DISCONNECTED 3e:24:c3:7c:df:61 wlan0: STA 3e:24:c3:7c:df:61 IEEE 802.11: disassociated

PaigePalisade commented 4 months ago

I am also not able to connect to WiFi networks created with this application. I have the 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter. I have tried using default settings and changing the settings. I am using Fedora 39. I am able to create and join a network with nmcli and the hotspot option in Gnome Settings. On my Android device, the connection fails instantly, on my Linux device, it takes more time but eventually fails. Adding the "No Virt" option causes my phone to fail to connect at the "obtaining ip address" phase instead of immediately. Update: I'm not sure why I did not try this earlier, but setting my device to use a static IP seems to work although there is no internet access. Local connections seem fine which is all I really need for my purposes.

Crono141 commented 3 months ago

Tried to use this last weekend and experienced the same symptoms. The program appears to successfully create the wifi hotspot. Connecting to it via phone results in a loop of connecting/obtaining/connected/dropped pattern. I was able to get an IP address, but the connection dropped all the same.

YuanziX commented 1 month ago

this thread is pretty old, but try disabling your firewall and see if that fixes the issue. I was facing the same issue and that fixed it.

Here's the command I used to allow the access point (i am using firewalld) firewall-cmd --zone=nm-shared --add-interface=ap0 or firewall-cmd --zone=nm-shared --add-interface=ap0 --permanent if you want to allow it permanently.