Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android phone stuck on "Optaining IP Address" #460

Open
nvestorora opened this issue Feb 5, 2025 · 1 comment
Open

Android phone stuck on "Optaining IP Address" #460

nvestorora opened this issue Feb 5, 2025 · 1 comment

Comments

@nvestorora
Copy link

Describe the bug
After creating the hotspot, the phone (Android 11) gets stuck at "Opaining IP Address"

To Reproduce
Steps to reproduce the behavior:

  1. Start wihotspot gui
  2. Enter SSID, make it open (no password)
  3. Set Wifi Interface to wlan0
  4. Set Internet Interface to wlan0
  5. Set band to 5GHz
  6. Click "Create hotspot"
  7. Try to connect to hotspot on smartphone

Expected behavior
Phone connects to hotspot

Logs
journalctl gave me this:

Feb 05 09:46:39 worklab hostapd[329626]: ap0: STA 2a:b2:1d:5b:84:57 IEEE 802.11: authenticated
Feb 05 09:46:39 worklab hostapd[329626]: ap0: STA 2a:b2:1d:5b:84:57 IEEE 802.11: associated (aid 1)
Feb 05 09:46:39 worklab hostapd[329626]: ap0: STA 2a:b2:1d:5b:84:57 RADIUS: starting accounting session 3978D5CEEA427CBD
Feb 05 09:46:39 worklab hostapd[329626]: ap0: STA 2a:b2:1d:5b:84:57 WPA: pairwise key handshake completed (RSN)

And no logs after that.

Desktop (please complete the following information):

  • OS: EndeavourOS
  • Kernel: 6.12.10-arch1-1
  • Desktop: KDE Plasma 6.2.5
@ByteMuch
Copy link

ByteMuch commented Feb 17, 2025

I had the same problem with the same distro. This command in the terminal solved my problem.
Check out issue #166 for reference. Wifi-hotspot requires specific firewall rules to be modified to allow the connection to transmit.

sudo firewall-cmd --add-service=dhcp
sudo firewall-cmd --add-service=dns
sudo firewall-cmd  --add-masquerade

sudo firewall-cmd -q --direct --add-rule ipv4 nat POSTROUTING 0 -o <ap_iface> -j MASQUERADE
sudo firewall-cmd -q --direct --add-rule ipv4 filter FORWARD 0 -i <internet_iface> -o <ap_iface> -j ACCEPT
sudo firewall-cmd -q --direct --add-rule ipv4 filter FORWARD 0 -i <ap_iface> -o <internet_iface> -m state --state RELATED,ESTABLISHED -j ACCEPT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants