linux-wifi-hotspot icon indicating copy to clipboard operation
linux-wifi-hotspot copied to clipboard

Can't connect to created network

Open gravit22 opened this issue 5 months ago • 4 comments

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):

  • OS: Ubuntu
  • Version 22.04.3 LTS

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

gravit22 avatar Feb 02 '24 08:02 gravit22

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

Besix2 avatar Feb 20 '24 18:02 Besix2

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.

PaigePalisade avatar Feb 24 '24 04:02 PaigePalisade

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.

Crono141 avatar Apr 05 '24 00:04 Crono141

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.

YuanziX avatar May 12 '24 19:05 YuanziX