[Q] Route app through specific interface - Networking

Hello!
I have a bit of a weird situation here.
I have a WiFi router in a remote location that needs configuring (Linksys EA2750) as it lost its settings after a power outage. The person that could help me is technically challenged, but at least there is an Android phone there that I can access remotely. The phone is an un-rooted Nokia 5.1 Plus (still) running Android 9. This phone is connected both to the router via WiFi and to mobile data. I can remotely operate it via Team Viewer.
I have tried to use the router's official Android app, but it is unable to configure the router's WAN/Internet settings. I have tried to connect to the router's web admin page, but it is inaccesibile via the browsers (tried Chrome and Firefox). I have tried using a firewall app (Mobiwol and NoRoot Firewall) to limit the browsers to WiFi only without any luck.
The only thing that I think will work is to somehow force the browser to use the WiFi interface no matter what. I've already spent hours trying to find out how to do that, but I am kind of losing hope here. I am guessing that I might need root access to accomplish that, but I am hoping it will not come to that.
I would appreciate any help in making my friend's phone stay connected to Team Viewer's servers via mobile data and access the WiFi router's admin page simultaneously.
Thank you in advance!

Related

VPN Constant Disconnects

My Xoom usually disconnects the VPN immediately after opening any file from an SMB Share using ES File Explorer. I preferred Astro but the SMB addon doesn't work with Honeycomb yet. A variation of different vpn clients all do the same, as soon as data is done being transferred from a single download, the VPN will disconnect.
Is there a workaround for this? It would be great to only have the VPN connect when resources on the network were accessed or written.
I haven't found a workaround or solution to keep the VPN up and stable.
(btw, this is a typical MS 2008 PPTP on a Windows Domain)
At the moment, I'm having to reconnect after every file transfer- again, the wireless network doesn't seem to make a difference (although the 3g connection is obviously poor)
I've done a little troubleshooting on this in the last few days using the magic of wireshark. MS PPTP Server, makes the connection and then drops after SMB traffic is attempted, as well any website will not load, and no email / communication will work.
I believe this fully involves a Default Gateway setting on the Xoom, being it's a client-side setting and the Xoom doesn't appear allow that option to be changed (silly that it's missing, imo).
When I make a connection, Verizon's firewall policies see a foreign IP return traffic at some point on their network and blocks the transmission completely, eventually causing PPTP to timeout.
Here's a good read on how to get around the restriction:
http://jbenisek.wordpress.com/2010/10/05/android-2-1-and-2-2-vpn-pptp-over-verizon/
I myself have been on the phone this morning regarding this issue, I'm up to about a 3rd level of tech support and he is trying to tell me 'nothing is blocked at all on the Verizon network'...
I'm awaiting a call back now... at which I'll try to show him the above site/resource and maybe he'll move me to an unrestricted IP block. We bought 3 Xooms with the intention of working remotely in the field using PPTP- 4 more coming soon---
At this point, I'm still tempted to go back to Sprint and just wait on their Xoom release.
*btw, you can verify the above by tethering to the Xoom and changing your default gateway on a laptop/pc, the connection will work fine.
edit:
AH-HAH!
And more info;
http://code.google.com/p/android/issues/detail?id=4706
Apparently this is a known issue.
Encrypted PPTP is broken on Android: http://code.google.com/p/android/issues/detail?id=4706
I've posted about this problem in this thread:
http://forum.xda-developers.com/showthread.php?t=992876
I've tried it on every version of Android since 2.1. I tried it with my Xoom on 3.0 and the problem remains. It appears to be a pretty low priority for Google.
sangreal06 said:
Encrypted PPTP is broken on Android: http://code.google.com/p/android/issues/detail?id=4706
Click to expand...
Click to collapse
Turned off encryption on the server and all was well. I can't believe google let that slide... !?
I guess I'll transition to a L2TP VPN...

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.

[Q] Odd WiFi Problem (No Internet Connection)

I just bought a Nexus 6P, rooted it, and installed PureNexus (Android 7.0.0). At home my WiFi works perfectly fine but I have issues at work.
Little background on our setup at work, we have 2 different wifi networks. One is a guest network with certain sites blocked at the firewall but nothing else really unique. The other is the main network with no firewall restrictions but you have to install a certificate to allow SSL traffic to be decrypted. Without the certificate you can go to any non-SSL sites, but secure sites will not load.
I'm able to connect to the guest network with no problems, but anytime I try to connect to the main network my phone says it has no internet connection. I'm able to get to internal resources on our network and the web browser actually does allow me to go online, but other applications won't. I've tried without the certificate, tried installing the certificate as WiFi and VPN/Apps but it doesn't seem to make a difference. Before the Nexus 6P I had an iPhone, which worked perfectly fine on the main network with the certificate. The last Android I had was on KitKat and it worked fine with the network configuration at work. Other people with Android have no problems with the network, but nobody has Nougat, yet. Any ideas on what's going on here or what I can do to fix it?
Thanks in advance for any suggestions or help you can give!

Use android phone as a router and block certain dns/routing addresses (Google DNS)?

Hey guys I can't seem to find an answer to what I am trying to accomplish.
Firstly I have an android phone (Nexus 6 rooted) that I use with an app called VPN hotspot. This lets me connect all my devices to the rooted phone while using a vpn to bypass geo restrictions. This is great for the most part but alot of buffering happens (not always but still annoying)
I pay for my own DNS service (unlocator) and I use that to bypass geo restrictions via phone. Unfortunately you cannot do that with the Chromecast because Google hardcore's the DNS into the firmware. That means when I try to use a UK app while abroad the Chromecast checks it's location and the casting wont work. Blocking routing addresses (8.8.8.8 & 8.8.4.4) allows me to achieve what I want. Unfortunately I can't find an app or anything that would allow me to do that on my rooted phone.
I used to have a router (was stolen) that could block Google's DNS adding static routing addresses to it. I wanted to know can an app do that via phone before I go out and purchase a new router.
My ideal situation would be to use my rooted phone as a little wireless router, have an app block those addresses/DNS, run VPN hotspot app from here, connect my Chromecast and daily driver phone to the rooted phone and be able to cast like I did with the router. If anyone has any ideas or apps that work for this type of setup can you please let me know. I know I can go out and buy a new router but I see the potential in using my old phone as a router and thought maybe it is possible.
Thank you guys.
Got help via Reddit. It can be done.

Issues connecting to AirMore and similar apps

Previously, I had no issues with AirMore on my Redmi Note 7. Recently, I can no longer connect by scanning the QR code. I've tried using another Xiaomi phone with the same version of Android and MIUI (both have Blokada as the only thing modifying their network), and it works properly with AirMore. I've also tried the method where you input your phone's local IP address to connect to its AirMore server. Works on the other phone, but not on this one.
I've also installed AirDroid, and it only manages to connect via the remote connection mode (over the internet), which limits you to 200 MB transfers in the free tier. So there's gotta be an issue with the phone isolating itself from the network. I do not remember modifying its network access in any way, other than using Blokada to block ads system-wide. I've tried uninstalling Blokada and it didn't help, while it works normally when Blokada is active on the other phone.
Can anybody help me diagnose what the heck is happening here?
Any help? I've managed to determined that the phone refuses all local incoming connections for some reason. I really can't afford a factory restore, I have so much installed and configured just the way I want it.

Categories

Resources