Comments (7)
What happens when you try to connect to the 7.1 device?
How do other devices see it(encryption, name, ...)?
from android-wifi-hotspot-manager-class.
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.
from android-wifi-hotspot-manager-class.
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.
from android-wifi-hotspot-manager-class.
The "ipAssignment" field is "UNASSIGNED" in both ways.
This is the Manually Created Config:
Manually_Created_Config: * ID: -1 SSID: nBdRURzKwVNLnLGL t (7985) PROVIDER-NAME: null BSSID: null FQDN: null PRIO: 0 HIDDEN: false NetworkSelectionStatus NETWORK_SELECTION_ENABLED hasEverConnected: false KeyMgmt: NONE Protocols: AuthAlgorithms: PairwiseCiphers: GroupCiphers: PSK: sim_num Enterprise config: IP config: IP assignment: UNASSIGNED Proxy settings: UNASSIGNED cuid=-1 luid=-1 lcuid=0 userApproved=USER_UNSPECIFIED noInternetAccessExpected=false isCarrierNetwork=false roamingFailureBlackListTimeMilli: 1000 triggeredLow: 0 triggeredBad: 0 triggeredNotHigh: 0 ticksLow: 0 ticksBad: 0 ticksNotHigh: 0 triggeredJoin: 0
and this is the Programmatically created Config:
Programmatically_Created_Config: * ID: -1 SSID: nBdRURzKwVNLnLGL t (7985) PROVIDER-NAME: null BSSID: null FQDN: null PRIO: 0 HIDDEN: false NetworkSelectionStatus NETWORK_SELECTION_ENABLED hasEverConnected: false KeyMgmt: NONE Protocols: AuthAlgorithms: PairwiseCiphers: GroupCiphers: PSK: sim_num Enterprise config: IP config: IP assignment: UNASSIGNED Proxy settings: UNASSIGNED cuid=-1 luid=-1 lcuid=0 userApproved=USER_UNSPECIFIED noInternetAccessExpected=false isCarrierNetwork=false roamingFailureBlackListTimeMilli: 1000 triggeredLow: 0 triggeredBad: 0 triggeredNotHigh: 0 ticksLow: 0 ticksBad: 0 ticksNotHigh: 0 triggeredJoin: 0
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".
Any Ideas?
from android-wifi-hotspot-manager-class.
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
from android-wifi-hotspot-manager-class.
Hi Nick,
I also faced the same issues on Android 7.1 device where I am able to configure the hotspot but the client is not able to connect. It just stuck at "obtaining Ip address....". Any solution for this. I tried to set the hotspot manually from settings and then try to open AP and it's creating the hotspot but client is not able to obtain the IP address
from android-wifi-hotspot-manager-class.
Hi @vikoo
I have the same issue, do you solve the problem? I tried create AP configuration into the code but the problem continuous.
from android-wifi-hotspot-manager-class.
Related Issues (18)
- Requires root or not? HOT 2
- Scan wifi issue HOT 6
- Unable to connect to Hotspot in Android 5.0 and above HOT 11
- Remove eclipse project files and add gradle build file
- Add support for API 23+ by adding Intend for WRITE_SETTINGS permission HOT 1
- Split project in demo and library (jar)
- Getting devices that are not only connected to hotspot but also available HOT 2
- How to get capability of hotspot? HOT 1
- IP Configuration HOT 1
- Create WPA2 Hotspot HOT 1
- android 8.0 can not open hotspot HOT 2
- How to get device name / ssid?
- modify mac address
- Is WRITE_SETTINGS permission compulsory? HOT 2
- WiFi connection is not restored when AP is turned off HOT 4
- Fail open hotspot @ android 5.0.2
- Internet usages by client connected by wifi hotspot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-wifi-hotspot-manager-class.