-
Notifications
You must be signed in to change notification settings - Fork 141
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
hotspot can not be connected to if it is password protected #19
Comments
What happens when you try to connect to the 7.1 device? |
Seems like they can not obtain IP, and it keeps trying again and again. and when this happens... SSID, password everything is all right, it is even authenticated but can't get IP. |
Can you try to compare the WifiConfiguration of a manually activated hotspot and the programmatically activated one? You could also try to to activate manually, save the WifiConfiguration, disable the AP and then enable it via API with the dumped WifiConfiguration. Check if that works. I would especially look at the ipAssignment field, maybe the problem ist DHCP related. |
The "ipAssignment" field is "UNASSIGNED" in both ways. and this is the Programmatically created Config: I can't find any differences and it is certainly DHCP related. the thing is that apps like "Shareit" work fine and create hotspot and the client can connect easily while the code posted here or the ones I have tried are not working and it is not protected hotspot specific, the open ones also face the problem and get stuck on "Obtaining IP". |
I have encountered the same problem, the other device connects only if you pause the activity (i.e. lock the phone). I have just added a hack after invoking the method to set the ap on, just paused and resumed the activity. I tested this on both devices running Android 7 (the client and server). TCP doesn't work for some reason |
Hi Nick, |
Hi @vikoo I have the same issue, do you solve the problem? I tried create AP configuration into the code but the problem continuous. |
Hi Nick,
The library works great but when I set a configuration for a WPA_PSK hotspot, the hotspot is created but it can't be connected on the other device.
Of course this is not your code's problem since I'v been dealing with this with any other solution. it is like the hotspot is created with a problem!
any ideas how to solve this problem?
PS: I'm making hotspot on android 7.1 and the client is running 5.1. and this only happens when I create hotspot on android 7+ devices.
The text was updated successfully, but these errors were encountered: