GithubHelp home page GithubHelp logo

Comments (7)

nickrussler avatar nickrussler commented on September 25, 2024

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.

neemashahbazi avatar neemashahbazi commented on September 25, 2024

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.

nickrussler avatar nickrussler commented on September 25, 2024

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.

neemashahbazi avatar neemashahbazi commented on September 25, 2024

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.

TomislavHorvat1 avatar TomislavHorvat1 commented on September 25, 2024

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.

vikoo avatar vikoo commented on September 25, 2024

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.

erotundo avatar erotundo commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.