Apps requiring the same Wi-Fi they are connected. - Networking

This has actually been bugging me for years but now I finally open this question to forums: So I have at my home several wifi-devices. And my wifi comes from my phone that creates the hotspot. Apps for controlling these wifi-devices always require wifi-connection to the same wifi-network they are themselves. So i need to have a second phone to control them because my "main phone" cannot be both hotspot provider and connect to the same hotspot itself. Is there any workaround to this ? Using android 10 with Zenfone 7. I would love to get rid of that 2-phone system at home. And i' not looking for solutions that require more devices

Related

Need deep technical advice on Hotspot/Tethering capabilities

Hello, I need some experienced developer confirmation on a few things.
Is it possible to code an app that will allow a device (Android or iOS) to create a hotspot and link several other devices with each other, allowing files to be transferred with each other WITHOUT tethering the host device's data network? Just a simple router with no internet I suppose.
Adhoc won't work because most mobile devices will have issues connecting to an adhoc network.
If possible, I would like for the code to allow the hotspot to not only connect the devices via WiFi but not kill the mobile data connection when each device connects to the WiFi hotspot. Essentially connecting to the hotspot and data network at the same time; the connections working simultaneously but completely separate from each other.
In a perfect world I would like to get this coded cross-platform: ie Android/iOS and maybe even Windows/Mac.
A tough question I know, but thanks for any responses. My primary concern would be Android, because it seems like it would be more suitable to make this happen, and I actually own one.
Syn Ack said:
Hello, I need some experienced developer confirmation on a few things.
Is it possible to code an app that will allow a device (Android or iOS) to create a hotspot and link several other devices with each other, allowing files to be transferred with each other WITHOUT tethering the host device's data network? Just a simple router with no internet I suppose.
Adhoc won't work because most mobile devices will have issues connecting to an adhoc network.
If possible, I would like for the code to allow the hotspot to not only connect the devices via WiFi but not kill the mobile data connection when each device connects to the WiFi hotspot. Essentially connecting to the hotspot and data network at the same time; the connections working simultaneously but completely separate from each other.
In a perfect world I would like to get this coded cross-platform: ie Android/iOS and maybe even Windows/Mac.
A tough question I know, but thanks for any responses. My primary concern would be Android, because it seems like it would be more suitable to make this happen, and I actually own one.
Click to expand...
Click to collapse
Maybe disable data and try a hotspot app? If you have a wired and wireless connection on a computer, turn it into a hotspot, using apps like Connectify (on Windows).
MrObvious said:
Maybe disable data and try a hotspot app? If you have a wired and wireless connection on a computer, turn it into a hotspot, using apps like Connectify (on Windows).
Click to expand...
Click to collapse
Thanks, I've already actually been able to accomplish that with one of the many WiFi tether apps. I am actually wanting to know if it's possible that I can code a version of that, that doesn't require root, works on most phones, creates a hotspot (doesn't just use the stock one), and doesn't use data. I suppose I could deal with it disabling data. As long as it never ever deals with data while the app is on, because I would prefer to not deal with carrier issues.
Alternatively I wouldn't mind using Bluetooth as long as I can connect the host device to more than one client devices, where the host device acts as a server. Can Android connect several devices via bluetooth?
Syn Ack said:
Thanks, I've already actually been able to accomplish that with one of the many WiFi tether apps. I am actually wanting to know if it's possible that I can code a version of that, that doesn't require root, works on most phones, creates a hotspot (doesn't just use the stock one), and doesn't use data. I suppose I could deal with it disabling data. As long as it never ever deals with data while the app is on, because I would prefer to not deal with carrier issues.
Alternatively I wouldn't mind using Bluetooth as long as I can connect the host device to more than one client devices, where the host device acts as a server. Can Android connect several devices via bluetooth?
Click to expand...
Click to collapse
I don't think you can do multiple Bluetooth. Honestly you'd be better trying to do it from a computer/router.
MrObvious said:
I don't think you can do multiple Bluetooth. Honestly you'd be better trying to do it from a computer/router.
Click to expand...
Click to collapse
That's the thing, we're trying to do this for our app with no extra devices. No worries I'll keep brainstorming.
You might want to check out an app called JoikuShare (sorry, can't post links yet).

Switch back to cellular when wifi has no internet, but keep wifi connected

tl;dr: When my phone (Sony Xperia Z5 compact, Android 6) connects to a wifi with no internet, I want to use the local network on the wifi but use the internet from my mobile data. Instead what happens mobile data doesn't switch back on while connected to wifi with no internet.
I have been trying to find a solution for this since forever. My camera creates a local wifi connection which I can connect to to view the camera as well as controlling it. The downside is that while connected to this network my cellular data gets switched off, despite this wifi network not having any internet. So while using my camera I have no way to access the internet. It wasn't a huge problem up until recently when the app I use is introducing livestreaming. I really want to use it but I am unable to find any way how to keep my phone connected to this wifi network (and being able to use it), while any internet data goes over 4G. I am using android 6.0.1. I am quite sure I was able to do this on my previous phone with an older Android version but I cannot find said option (smart network switch or something?) anymore in the wifi settings. Nor any recent similar topics with people with the same question? Anyone that knows more about this?
My phone is rooted. If I need to do any system changes I can do that.
I didnt get what you were trying saying.Do you know that you cant use mobile data and wifi simultaneously unless your device is rooted.If your phone is rooted then try using "download booster"
hh950430 said:
I didnt get what you were trying saying.Do you know that you cant use mobile data and wifi simultaneously unless your device is rooted.
Click to expand...
Click to collapse
Err, sorry, lol. I have wifi network that has no internet, just a local network. I'd like to be connected to that wifi network AND be able to use internet over my mobile data both at the same time. As it is right now, my mobile data gets disabled even when the wifi network has no internet access.
I have talked to two friends of mine about it and both say this is already possible in Android. One friend sent me a screenshot of an option he has in his wifi settings called 'Switch to mobile data' which gets enabled when the wifi network has no internet. My other friend said he doesn't have this option but claims it has been a default feature of Android since lollipop. He tested it on his phone and indeed it works as expected. Both have an unrooted phone with stock Android. So now there is me with my brand new phone and Android 6 and I can't find this option nor does it seem to do what I want by default. I'm confused.
As I mentioned, my phone is rooted so if there is a way to turn this feature on using root, I can totally do that if someone knows how.
As i said try using "Download Booster" It allows you to use wifi and mobile data at the same time just google it.
hh950430 said:
As i said try using "Download Booster" It allows you to use wifi and mobile data at the same time just google it.
Click to expand...
Click to collapse
That appears to be just a download manager if I am correct? I don't need to download anything. I just want to be able to use my existing apps to use my mobile internet when I am connected to wifi (that has no internet).
This is the exactly the thing I'm after. Screenshot from my friend's phone (LG G4 with Android 6.0): (*link removed). My other friend who also has this functionality working has a Nexus 5 with Android 6.0.1.
* Forum doesn't let me post screenshots.. But basically in his wifi settings he has an option called "Switch to mobile data". The box says "Internet unavailable via connected Wi-Fi. Stay connected to Wi-Fi, but use mobile data. Data charges may apply."
Again, I have Sony Xperia Z5 compact with Android 6.0.1 and I can't find this. Have I bought the wrong phone or is it fixable? At this point I am more than happy to even take a custom rom route.
You cannot use wifi and internet at the same time as they are completely different hardware components, using different air waves, so there's no conflicts between them. Better use internet through your wifi or use bluetooth tethering.As for the "switch to mobile data option" it disconnectes you from your wifi if it has no internet and connects you to your mobile data so it doesnt lets you use your wifi and mobile data at the same time
hh950430 said:
You cannot use wifi and internet at the same time as they are completely different hardware components, using different air waves, so there's no conflicts between them. Better use internet through your wifi or use bluetooth tethering.As for the "switch to mobile data option" it disconnectes you from your wifi if it has no internet and connects you to your mobile data so it doesnt lets you use your wifi and mobile data at the same time
Click to expand...
Click to collapse
It actually clearly mentions that it keeps connected to the wifi. He tested it and indeed he could use the local network on the wifi side and use the internet through his mobile data simultaneously. Both friends haven't rooted their phones or anything. This is just a default functionality for them. I have now tested it also on my older phones (Oneplus One and HTC One M8) and all phones can't have both connections open at the same time.
This wifi network is created by my camera by the way and I can't change much about it. The DJI drone I control does the same thing. When I am connected to the camera or drone I lose my mobile internet connection.
I don't have any other device that has access to internet here. We don't have cabled internet, only mobile internet.
Interestingly, in the developers options there is an option called "Mobile data always active" ("Always keep mobile data active, even when Wi-Fi is active"). I've tried it many times, rebooted my phone but this doesn't actually do anything. Even with this option on when wifi is connected the mobile data gets turned off.
This is beyond annoying!
I too have struggled to find a solution to this problem. I do not have a WAN connection to my home network. It is LAN only. I have four PC's, three Sonos speakers, two hdhomerun TV tuners, and various hand held devices that all use the LAN. All I want to do is be able to use my Moto X Pure to control Sonos and file sync to my LAN via wifi and simultaneously use mobile data for WAN stuff. I know the mobile connection is active with wifi enabled because I can see it when running if config, up route show etc... I am trying to learn about the routing tables to see if I can fix this myself. I love my android devices and am loyal, but this is beyond dumb! Any suggestions????
How to fix for android
okay so for anyone who doesnt know still go into the about phone option in your phone settings, then click on kernel version, build model, etc til one pops up with a flash notification saying click so many more times and youll become a dev. once you done that go into the developer menu and scroll too wifi assist or force mobile data upon wifi connection. exit out , open your app , bobs your uncle
Thank you for the answer.
I tried with my Huawei but it doesn't work. Could you tell with which phone you made it work ? Thank you !!
Ok here we go, after 12 years this my first post.
Above suggestions related with developer options nothing to do with OPs requirement. Those option only allows the device rapidly switch to mobile data when the WiFi signal gets weak. Since you always close to your DSLR camera it solves nothing because WiFi signal is always strong.
Root cause of the problem is you can not have 2 default gateways (i.e. router address) for your networks in any operating system (Actually you can but you have to set static routes, which is a pain in the ass for regular users)
iOS handles this in a very simple way. Set your wifi connection to static IP address instead of DHCP and leave your default gateway or router address blank. Viola you can have 3G/LTE data while you connected your camera and now you can sent your downloaded pictures via Whatapp while you still connected to your camera via WiFi. (In my case Panasonic Lumix)
I stumbled upon this thread via Google since I needed the same thing now with Android. But iOS way failed. Actually I am shocked that you cannot leave WiFi Gateway address blank in Androdid 8.0! Save button grays out if you leave it blank. This is really weird. At least with Galaxy S8 Duos with Android 8.0
So anybody know how to setup a WiFi network without a default gateway, please share.
Is this phone specific or something? Never had that happen, I have no problem with wifi being on without internet and using cell data.
I don't think the UI really exposes anything like it directly but you can technically have multiple gateways; it's not something your average user will understand (policy routing)..
Having said that, if you're attached to an AP you should at least see a /24 route out your wireless interface (standard dhcp lease). It's quite common for the AP to have client isolation but are you sure you're not using something like Wifi Direct or even adhoc?
Similar Experience
I have been through this experience long ago. All I did was to sell the phone and bought a new one.

Hotspot won't enable

Introduction:
I have a carrier free s7 not rooted (SM-G935U, android 6.0.1) and have loved the tethering feature. I especially use it while traveling to share the hotel Wi-Fi to other devices. For example, my phone registers on the hotel Wi-Fi and then shares the internet using the hotspot feature to my kindle. I have had no problems whatsoever until today. I have T-Mobile and hotspot won't work for wifi sharing or cell sharing. It doesn't turn on at all.
Symptoms:
When I attempt to turn on tethering using settings-> hotspot and tethering, it receives my selection, "thinks" about it, and then reverts to it being turned off. Sometimes it briefly has the hotspot notification appear.
Attempted fixes:
Disabled/enabled wifi, mobile data, airplane mode, smart view (though no tv's were available to cast). Restarted phone multiple times, including safe mode. Deleted system cache. Reset APN settings.
Theory:
The problem did arise shortly after trying to turn on smart view (the tv it turns it was a "dumb" tv, so it didn't work). I'm wondering if somehow smart view set a flag that interferes with mobile hotspot (since they are mutually exclusive features). This might not be the case because I haven't had troubles in various situations where I've used smart view before.
Any tips on how I can get this to work? I hate logging into the internet on multiple devices every time I switch hotels. I'd rather not reflash the phone but I could root if necessary. Thanks, y'all are really helpful.

[Problem] Wifi Hotspot without internet connection

Since the last official update I'm always having problems when I turn on my wifi hotspot to use my other phone with the Zenfone Zoom Data.
When I turn it on it doesn't work, my connected devices show "no connection" when connected to the wifi hotspot, I manage to get it working always swearing while I reset the wifi and data settings, I turn on and off the data and the wifi hotspot. Sometimes I have to go to the VPN and re-tap on the correct VPN in use (that is already selected) and then the connection will stat working on my connected devices. Often I have to repeat those steps many times.
The other weird thing is that when I'm using the Zoom S as wifi hotspot, the connection on the phone itself stop working. It works only on the connected devices.
Never had those problems with previous android phones I had (several Nexus, a Note 3 and an Ulefone Power). I use the wifi hotspot really often since I still use my Note 3 and this is really frustrating.
EDIT Maybe I posted this in the wrong section. My mistake sorry. If some mod can move this I'll be glad.
try adding ",dun" to the access point types under the APN settings. I had a similar issue that fixed it.
Last week I used my Asus 3 Zoom to give my laptop internet by Wifi hotspot. Worked flawlessly.

vysor blue lock?

I have been using vysor since i had my Samsung galaxy S4A and it has been working flawlessly which is why i bought it. Ever since I changed phones from s7 to s10+ I've noticed that after a bout 3-5 minutes of playing I get a blue lock on the screen and it makes me pull to the side to unlock it. What i don't understand is why this started happening when i have had two phones (S4A and S7A) both worked perfectly without getting this annoying blue lock screen and now i cant even play/macro a game without the screen locking. Anyone else use this software getting the same thing? Any suggestions would be appreciated.
Battousai21 said:
after a bout 3-5 minutes of playing I get a blue lock on the screen and it makes me pull to the side to unlock it.
Click to expand...
Click to collapse
Can you just right click with your PC mouse and sweep upward on the mirrored phone to unlock it?
I just found this thread long after I got Vysor (and scrcpy) to work (almost) flawlessly on Android 11 (with USB setting up the initial adb connection and then switching to Wi-Fi thereafter)....
In early May I updated from Android 11 to Android 12 and I found out that Android 12 has a fantastic new Developer option "Wireless debugging" feature where you can set up the adb connection to the PC completely over Wi-Fi (no need for the initial USB connection!).
I just wanted people to know new information related to using Vysor completely over Wi-Fi (no USB connection is ever needed again!).
This always on Wi-Fi Vysor capability is new in Android 12 because Android 12 has a new Developer option for "Wireless debugging".
However, Android 12 also has a new Developer option for "Enhanced MAC Randomization" which randomizes the MAC address on every Wi-Fi connection, so with that added desired Wi-Fi simplicity in Android 12 comes also the added desired privacy of MAC randomization on every connection (the difference being Android 11 only randomized the MAC per SSID, as far as I understand it).
All this new Android 12 functionality has implications for your Vysor (and scrcpy) setup, based on my tests over the past couple of months.
Of course, if your router is using the MAC address to hand out the IP address you might need address reservation since the router can no longer expect a consistent MAC address if you set that new Android 12 Developer option but you can set the Android phone to request a "Static" IP address (if you want the adb connect commands to be consistent in the IP address in day to day usage).
I have found that rebooting the PC causes me to need to reconnect via an adb command on the PC before Vysor will work, and, for unknown reasons yet, often the Android 12 "Wireless debugging" switch gets turned off (mysteriously) - which affects the Vysor (and scrcpy) connections from one day to another.
It's no big deal once you figure out the commands and switches though, where the screenshots below show the settings I currently have on my unrooted Android 12 Samsung Galaxy A32-5G phone from T-Mobile (many of which are for privacy and functionality reasons).

Categories

Resources