Listening to WiFi probe requests - Android Q&A, Help & Troubleshooting

Hello everyone,
I am new to Android development and am uncertain about the restrictions on STOCK phones.
The goal of my application is to exchange a small amount of data ~32 byte. It should use a method available for all phones (Android, iOS, Linux). Most phones always have mobile data and WiFi activated so my idea was to use WiFi.
I thought of two methods:
Method A
Phone A could add a new WiFi network to the list of known networks. The name of the SSID could be chosen (that's the transmitted message). Phone A would now send out WiFi probe requests. Phone B could listen to WiFi probe requests and extract the SSID (message received). The phones would not have to actually communicate over WiFi. The exchange of SSID names is all that needs to be achieved.
Method B
Phone A could send out a WiFi beacon. The name of the SSID could be chosen (that's the transmitted message). Phone A would now send out WiFi beacons. Phone B could scan available networks and extract the SSID (message received). The phones would not have to actually communicate over WiFi. The exchange of SSID names is all that needs to be achieved.
(I guess tethering would have to be possible. This might cause unwanted behavior if phone is actually supposed to be tethering. Also if I am correct tethering is sometimes restricted)
Preferably this should all work on stock phones. Differentiating between SSID that are messages and SSID which are regular networks (router..) is out of scope for this problem. If anybody has a hint for rooted phones, your help would also be greatly appreciated
Thank you very much for your help!
FreudigerMax

Related

WIFI (& IP) switch for roaming users

I found several utilities to connect WIFI to a choosed hotspot, WIFI scanner like, but none having IP settings switching feature, at the same time (like Mobile Net Swith for XP).
Does someone know such a product? a utility? a script/batch?
Or, you keep your WIFI settings to DHCP provided IP & DNS ?
Thus allowing kinda easyness when roaming thru unknown public hotspots.
I'm interesting by any suggest too :wink:
I use a program called Hitchhiker - by Kasuei. It's free to use, nice graphics + you can make a donation if you like it.
Janeway

wifi good..no data

Vegan gb 7.0. I can connect to the web just fine, but I can't download anything and anything needed for a data connection wont work. It's an intermittent problem, my wifi status bar will be white when it doesn't work and green when it does. Pershoots latest kernel.
I've noticed the same thing with the white icon vs. green icon when using wifi that is filtered/proxied. Like using wifi at a local coffee shop where you have to agree to the terms of use. You are connected to the access point but not to the outside WAN.
I think your connection issue may be more network related than device related.
What type of wifi connection are you using? Is this a personal one or a public one? Do you have access to the router's configuration? (Linksys web interface is 192.168.1.1 by default, for example.)
Personal wifi...psa2. I put my tab to sleep last night not working ...now it is. I've restarted before and it didn't fix it. Belkin router.
Yes this is happeningto me.....so when thewifi is green I can download but when its not I cannot download..... I did nothing itjust goes back and forth from time to time ....anyone know how to fix???
Network troubleshooting.
To the best of my understanding, this occurs when you have connectivity to the wireless access point, not to the internet itself. I think it turns green when it is able to contact Google services. Generally, this would mean that your wireless router is either not reaching your internet service provider (ISP), or there is a proxy not allowing your device to use the access point as a gateway to the ISP.
If you're on a public network, like Starbucks, McDonalds, etc., you may need to agree to an acceptable use agreement. I've found I need to use the default browser for this.
If you're on your home network, the next time the icon is white, check the following things.
Are any other devices on your network having a similar problem?
Does your modem have power? and are the lights indicating trafic?
Can you access your modem's web interface, and run any diagnostic tests to be sure it's reaching your ISP? (You may need to contact your ISP for further instructions.)
Is your router able to contact the modem?
To determine if this is the case you'll need to trouble shoot your router and its connection to your modem.
(The following are some defaults.)
Model IP address user password
Linksys 192.168.1.1 admin admin
Belkin 192.168.1.254 admin "blank"
Netgear 192.168.61.1 administrator password
I could have mixed up one or more of these, but it's one variation or the other.
The info may even be on the bottom of your router.
Once you've accessed your router, make sure it's getting an external IP address from your modem.
Let me know if any of this helps. I'll try to get back on later this evening. Leaving work now.

[Q] IPv6 access from a host to an Android device

Hi,
I'm trying to connect from a host (PC or other) to a mobile cellular Android device on the Verizon/AT&T cellular network. This device uses only the 3G network and has its Wi-Fi turned off. The Android device has a listening socket and I need the remote host to be the connection initiator. As far as I know, Verizon/AT&T uses NAT traversal for mobile phones and assigns local IP addresses to them on the cellular network. This prevents me from initiating a connection to the device from a remote host. Please correct me if I'm wrong about that.
With the usage of IPv6 assignments there shouldn't be any practical limitation (virtually unlimited) to the number of "real" IPs that can be assigned.
Therefore my questions are:
1. Does the Verizon/AT&T cellular network support IPv6 and assigns IPv6 addresses to capable Android devices?
2. Is it a feasible solution to this problem?
3. Does Android 2.2+ have enough support for IPv6 to implement such solution?
I am aware of other methods that can be used, such as C2DM, but it has some drawbacks (such as unknown response time) that prevent me from using it.
Thanks.
This works on T-Mobile with the Nexus S. ICS brings 3G IPv6 support to the Nexus S, and T-Mobile has an IPv6 beta. On that beta program, you sign up for IPv6 and made inbound connection to the phone, which has a public IPv6 address.

Local WiFi and LTE simultaneously.

Hi everyone, I have a question that i can't quite seem to find an answer to any where i look.
I am a recent android convert, i had ios on my iphone and ipads for many years. I use a wireless hard drive that has its own wifi signal, which i connect my devices to. The problem with doing this is that the device thinks then that it should get all of its internet from that wifi connection, which of course, being a hard drive, it does not have.
To get around this what i have done is go in my IOS configuration and remove the "default gateway" or "router" or whatever you want to call it (depending on your networking background), and then iOS knows to go ahead and not use wifi and continue to send any non local traffic over LTE.
My Samsung Note 5 doesn't seem to want to do this. First thing, when i try to remove the router/gateway from the ip address configuration in wifi, the "save" button is grayed, meaning i cannot save a blank gateway. I located an app on the app store called "wifi settings" which was suggested to use to set the router to nothing, but still this did not work, really what it did was save a 1 in the router/gateway field and caused nothing to work, not even local traffic.
The Note 5 has a "smart network switch" option which is apparently to detect a poor wifi signal and switch to LTE, if i enable this, the phone does realize that the wifi connection to the wifi hdd doesn't have an internet connection, but terminates the wifi connection, thus killing my connection to my hard drive.
My question, does anyone know how to configure the wifi on android to access local resources via wifi while still using the 3g/4g connection for internet traffic?
Any help would be appreciated. Thanks much.

Can't get online via DD-WRT router?

Hey folks,
Not quite sure where to begin with this one, so I figure I'll just explain what I've done so far and see if any of you have any ideas.
First off, I tinkered with the settings of two DD-WRT hotspots (both 2.4ghz and 5ghz respectively,) but various alterations made no difference, so I restored them to how they were before.
I then set up a wifi hotspot on a spare Note 3 that I have lying around, both in 2.4 and 5, and 5 wouldn't work altogether (giving me a generic error message when trying to initialise the hotspot) while 2.4 worked but just wouldn't connect at all to my A10.
For the record, I am able to *connect* to the router, my A10 is just the only device in the household for which the router doesn't then open up to the greater internet.
I have set up a DHCP entry for the phone, both using its randomly generated local IP address and swapping the name and MAC with a previously established entry that I know works, and I have uaed both auto and manual settings on the device (I use 1.1.1.1 and 1.0.0.1 DNS servers so I figured I'd manually input them too).
Either way, the A10 doesn't connect to the internet via wifi, just network data, while all my other devices are fine.
Does anybody have an idea how I can resolve this issue short of sending the device back altogether, or at least for a hardware check/repair?
Thanks for your consideration,
Kaolin
Just grabbed some screenshots of my settings, can get more if these aren't enough. How do I attach them?
update:
I contacted my network provider and they had me reset my overall settings and rebooted, and then after that didn't work, I reset the network settings specifically. Still no change.
I'm concerned that it's a Modem firmware issue, which would suck, because the A10 custom ROM scene is tiny.

Categories

Resources