yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] cmcg86:
Thank you for your quick reply. Sorry I may not have been clearer. I only pay for the DNS partion of unlocator service. Their VPN is alot more expensive. I use the DNS because of speed.

I just wanted to know if I could use the rooted device (nexus 6) just like I could do with the tp link router. Is there such an app that I can block Google's routes? I would have blocked 8.8.8.8 & 8.8.4.4 and a few others to suit my needs. I'm hoping I can do that with your app or something similar. Cutting out the use for a VPN. I hope this makes sense. Thanks

I am finding it hard to explain what I'm asking sorry.

Let's say there is an app that I can block routes from being used. Then I activate your repeater option in your app. I'll connect both my Chromecast and phone to your app, the Chromecast can't access their DNS and end up using unlocator DNS and I can then cast while in a different country, obviously the Chromecast checks location so it normally wouldn't work.

This is the reason behind me looking to do something like this. Is it possible? Thanks again
[Android Apps and Games] rodken:
When you mention Android hotspot API's, are you referring to the "net.tethering.noprovisioning=true" string in the build.prop as well?
[Android Apps and Games] btb55:
Thanks for producing the app.

I'm giving it a try on my OP6T (Oxygen OS 9.17 - Pie), and can report it works when I have an OpenVPN tunnel connected, but when using Wireguard it doesn't. With an opvn connection I can see the upstream interface is tun0, but with wg it remains null, (the wg tunnel is connected and working). So I guess its the missing tun0 with wg that's the problem?

I've tried a couple of different kernels with the same result, just in case it made a difference.

Interestingly when I use openvpn I see the 'key' symbol in system notifications, with wg I don't, even though the connection is established.

Is it likely I can change a system setting to resolve this? If you would like to see debug log I'll upload it.
[Android Apps and Games] Vs995Child:
I know I've seen the answer in this thread somewhere, but my question is why does my temp wifi keep cutting off after a couple if seconds when the client connects? Im using version 2.8.0

Update:

I got it to work. Been using it now for at least 3hrs. Thanks so much to the Dev.
[Android Apps and Games] Mygod Studio:
search the thread or read the documentation.
[Android Apps and Games] btb55:
Thank you.

I'm still struggling to get it working with Wireguard. (OK with OpenVPN). The wg interface is 'azuk' and I've attached a couple of screenshots to show my setup, upstream interface being set to 'azuk'

I've tried both options in 'Masquerade Mode', and followed this method to start the hotspot first then the vpn:

The secondary device gets connected to the hotspot but not tunneled, same with both Repeater and Hotspot

I must be missing something but can't see what.
[Android Apps and Games] Mygod Studio:
Apologies. It seems that I dropped support for wireguard kernel mode since v2.7.0. The main reason is that they do not use Android VPN APIs correctly so that it is infeasible to read DNS servers using Android's API. Related source code: https://github.com/WireGuard/wiregu...72db7b76ff3f18020/src/wg-quick/android.c#L883

I consider this to be a bug of WireGuard and I do not attempt to fix this. (you are welcome to report to WireGuard regarding this)

Recommended solution: Use WireGuard VpnService implementation and prevent kernel mode.

Bad solution: Use v2.6.5. Do note that even if you use the old version, this app will not route DNS correctly for kernel mode WireGuard so I really do not recommend using this.
[Android Apps and Games] btb55:
OK, thanks for the full explanation.

I'll have read up of the links you provided and recommended solution. Much appreciated.
[Android Apps and Games] Hemidroids:
Thanks for the app. Been using it for about a week now. Does EXACTLY what I needed it to do. Thanks again. :D
[Android Apps and Games] mathmysterygame:
Great

Great
[Android Apps and Games] pharpe:
Just loaded this on my Pixel 3a but my tethered clients are not going over the VPN. I've tried disabling hardware acceleration.

Stock Android 10 with clean install

Magisk latest 20.3 Stable

VPN is PIA. I'm connecting using the PIA app

Debug Log

Thanks
[Android Apps and Games] Mygod Studio:
Export while service is active.
[Android Apps and Games] pharpe:
I connected to VPN. IP is 104... VPN ID is 173...

[IMG="PIA VPN"]https://www.dropbox.com/s/fhgqbva5pkascyb/pia.jpg?raw=1[/IMG]

Started VPN Hotspot and turned on tether

[IMG="VPN Hotspot"]https://www.dropbox.com/s/fel3uu74al7h4i0/vpn_hotspot.jpg?raw=1[/IMG]

Connected PC to the hotspot and checked external IP. It's not using the VPN IP

[IMG="IP"]https://www.dropbox.com/s/b3di27all14hmqc/ip.jpg?raw=1[/IMG]

I also tried toggling the wlan1 on and check again but still using the ISP IP address

Log
[Android Apps and Games] Mygod Studio:
Interesting. Can you run the following in adb shell or a shell app under the same circumstances (turn on wlan1, turn on VPN), and show me the result?

su -c 'ip route get from 192.168.43.64 iif wlan1 to 9.9.9.9'

Can you also try if repeater (in this app) works properly?
[Android Apps and Games] pharpe:
C:\>adb shell
sargo:/ $ su -c 'ip route get from 192.168.43.64 iif wlan1 to 9.9.9.9'
9.9.9.9 from 192.168.43.64 via 192.168.1.1 dev wlan0 table wlan0
cache iif wlan1
sargo:/ $ su -c 'ip route get from 192.168.43.64 iif wlan1 to 9.9.9.9'
9.9.9.9 from 192.168.43.64 dev tun0 table tun0
cache iif wlan1

Ran it twice. Once with the wlan1 toggle off and the second time on. After tuning wlan1 on it's now showing my VPN IP address on the client PC . Not sure what changed but it's working now.
[Android Apps and Games] motolio:
By "not using the hidden tethering apn" do you mean, I should not add dun to my apn? Thanks!
[Android Apps and Games] kos25k:
hello.on my tv box (vorke Z6) when i press hotspot button,wifi turns off.How can i enable hotspot same time with wifi please?any magisk module?
[Android Apps and Games] Mygod Studio:
Repeater. If you don't see it, your phone doesn't support it.
[Android Apps and Games] kos25k:
thanks.I enabled it,i thought it was hotspot option.i see second network on my phone ok,but which the password is supposed to be?bit confused..

*Forget it i found!Now i have 2 issues:

1) Mu devices keep trying to connect,they say they obtain IP adress but it just takes ages.

2)There is a second extra network among with new created,called DIRECT-cV.
[Android Apps and Games] Mygod Studio:
dhcp workaround
[Android Apps and Games] kos25k:
[MENTION=5243610]Mygod Studio[/MENTION] thanks finally all is as it should!Btw i use vpn unlimited.But issue is (not this app's related) that when i choose some server,stremio doesn't work.If i choose some torrent server,then facebook doesnt work.If i choose a stream server,then YouTube doesn't work and so on..Can someone that uses this vpn service,tell me what to choose so all my apps works ok without having to change servers all the time?
[Android Apps and Games] gigilie:
Thank you for this awesome app!

Really appreciate this app it's been the answer to mine and many others hotspot throttling issues with tmobile. I've seen you recommend using ttl master or similar along side this to ensure data is hidden. Since a10 ttl master no longer works for me is there any chance you can add an option for enabling fixed ttl? I was also wondering if it's possible to take an incoming wifi connection (5ghz) and like bridge it with the phones 4g mobile data and force that all thru wlan0 and output it thru a 2ghz hotspot? I'm not sure this makes much sense but I'd love to basically boost my weak wifi connection with my 4g and use it as an original hotspot or wifi repeater. I think fq router kind of used to be able to do it but that apps defunct now
[Android Apps and Games] Mygod Studio:
I recommend using a real VPN with this app to ensure your tethering traffic is hidden (works against T-Mobile). TTL Master or alternatives are only if you absolutely do not want to use any VPN.

A collection of lightweight "VPN apps" (apps that actually do not forward traffic elsewhere, like some ad blockers) that you can use to hide tethering: https://github.com/Mygod/VPNHotspot/issues/139

If you use this app with any of the apps mentioned above, no TTL tweaking is needed.

Repeater with 5GHz upstream and 2GHz downstream probably depends on your device's capabilities. You can try tweaking configurations to see if it works.
[Android Apps and Games] Mygod Studio:
It looks like this app is doing some filtering by uid. A possible solution might be to set up a proxy server with hotspot/repeater, and set up a second repeater to use the proxy server as a VPN (or just use the proxy server directly as in http injector). I could get around this in the app but I don't care enough about this hola.
[Android Apps and Games] inkognito3:
Hello, i have NordVPN and its set to auto connect when my Android box boots, how can i set that VPN Hotspot (wlan0) is also auto on when box is booted?
[Android Apps and Games] Mygod Studio:
Looks like Android 11 will support this: https://android-review.googlesource.com/c/platform/frameworks/base/+/1213013

The app will be updated correspondingly to support this feature. :)

EDIT: Looks like the API was blacklisted. Will probably not support this for now.
[Android Apps and Games] jir591:
I read all of the comments but a bit confused. I'm using this app to on a tmobile network using a usb tether (not wifi hotspot) . I have a data plan but I'm trying to avoid the carrier's data limiting / throttling .

So I am following these steps:

1) turn on my phone's VPN service. (i use PIA)

2) Start up VPN Hotspot app.

3) Connect usb tether cable to phone.

4) turn on USB tethering in this app.

5) then in the app I see rndis0 which is the device I'm connect to. I tun that on.

That's it. Did I miss anything?
[Android Apps and Games] Mygod Studio:
You will then be disappointed to learn that Android 11 will now randomly pick a /24 subnet for you too.
[Android Apps and Games] yule dee:
Great app .if face any problems using this app,plese read readme file on GitHub.Especially on "IP Masquerade Mode" and "Tethering hardware acceleration"
[Android Apps and Games] NightFox029:
Deleted
[Android Apps and Games] KasunHerath97:
Thank you. It's working fine. A great app. Very useful for me.:):svetius:
[Android Apps and Games] nagi_007pk:
Connecting problem

Anybody know a fix for this?
[Android Apps and Games] Mygod Studio:
Enable DHCP workaround.
[Android Apps and Games] nagi_007pk:
No cake

Yeah mate. I tried that. It still loses the ip. Keeps on saying connecting. Unreachable etc.

Doesn't happen with any other devices I use just my fire stick. Would be nice if you could suggest an alternative fix?
[Android Apps and Games] CyberpodS2:
Would you consider Wireguard (Azure) to satisfy your "real VPN" recommendation?
[Android Apps and Games] Mygod Studio:
Yes I believe so.
[Android Apps and Games] thimprfct:
just donated, in hope that vpn hotspot one day works without the google in-app service + other google components for me. or maybe there will be a paid app with more power to the 'user' side + more stable connection.

I very much like the concept + potential of vpn hotspot.
[Android Apps and Games] Metconnect2000:
I have tried using Adguard and 1.1.1.1 VPN on my LG V20 on Tmobile. Unfortunately usage is still being counted against the hot spot usage. Where should i begin to check to see if there are other settings that i missed? I verified that the VPN hotspot app recognizes the VPN. Thanks!
[Android Apps and Games] Mygod Studio:
Did you see any error when turning on VPN tethering? Did you turn off system hardware tethering offload?
[Android Apps and Games] Metconnect2000:
No errors when turning on the VPN. I'm on Android 8.0. I think system hardware tethering offload is not part of Android 8.0. Only 8.1 and later? thanks
[Android Apps and Games] Mygod Studio:
Please enable everything and export debug information and send it to me.
[Android Apps and Games] Metconnect2000:
False alarm. I played with the settings a bit and found what i needed. thanks!
[Android Apps and Games] aznxwill:
Can you provide steps on how you configured it to work? I'm also on T-Mobile and wanted to get a basic idea on configuration. I am using Adguard as a "fake VPN".
[Android Apps and Games] Metconnect2000:
I'm using Adguard as well. I have removed some Tmobile bloatware, which i'm not sure has any effect on this. The option really made the difference was move the slider to the right on "wlan0".
[Android Apps and Games] aznxwill:
You have 2 options enabled right? Hotspot and wlan? Also Adguard is set to VPN mode instead of proxy, right? And upstream is set to tun0.

Just wanted to confirm my configuration.
[Android Apps and Games] Mygod Studio:
Adguard on Google Play won't work. Try this: https://adguard.com/en/adguard-android/overview.html
[Android Apps and Games] VD171:
it is working perfectly on android 9.

thank you very much !
[Android Apps and Games] ZBearIT:
:good:

Perfect on my Xiaomi Redmi Note 8 PRO with Android 9 (rooted)

Thanks for your work :) :)
[Android Apps and Games] ScrapMaker:
Does anyone know if there's a way to have the app automatically trigger the wlan1 toggle when hotspot is detected? Is there an intent we can hit, possibly? If so, then this could be totally hands-off, and just make native tethering work nearly seamlessly.

I've been trying to dig up a way to do this with intents, but can't find anything in logcat. Might not be exposed in that manner.

Of note: "Temporary Wi-Fi hotspot" toggle does exactly what I want, except I need static SSID/passphrase. It automatically enables the wlan1 portion, unlike the other.
[Android Apps and Games] TopGun2000:
Thank you! Here is what I've found out.

My VPN server has an IPv4 address. Following your instructions, after being connected successfully, whatismyip.com shows that my secondary device's IPv4 addr is the same as my VPN server (great!), however its IPv6 addr is from Sprint. If I visit whatismyip.com directly on the primary device, it shows an IPv4 addr same as VPN server but no IPv6 addr detected. Maybe IPv6 traffic isn't re-routed properly like IPv4 traffic through VPN tethering?
[Android Apps and Games] blambo:
A lot of variables with IPv6, and a different strategy required to basically connect. (Sprint has IPv6 native support, but many VPNs do not... (DNS leaks).

The following method is less than 50/50 for connecting in a pure IPv6 VPN environment, but VPN tethering does work.

Go to your primary's APN settings, make sure that only IPv6 is enabled.

Connect to your VPN. If it connects successfully and you have an IPv6 remote IP address, you now know that the VPN IPv6 does in fact work at some basic level,

Keep the VPN active, do not turn it off.

Activate 'VPN Hotspot' "Tethering" mode, (Wi-Fi hotspot then wlan0).

Now connect secondary devices, including windows machines, they should all have some sort of connectivity with primary's VPN tunnel address.

-FYI: You can run an OpenVPN server on a cheap VPS and set it to be IPv6 persistent, (but of course that is for another time & place).

Also, AnyConnect/OpenConnect VPN shared tether access with IPv6 can very slow to connect, settings problematic, and even then more than somewhat flaky.
[Android Apps and Games] Johnfoo19:
This app is just awesome!

Now, i´m able to share my VPN connection without drops on hammerhead running DU 12.2
[Android Apps and Games] TopGun2000:
Yeah, IPv6 VPN sharing sounds problematic. Interesting part is that on the primary device, once VPN is active, remote IP check always shows my VPN server IPv4 addr. However, on the secondary device, remote IP check shows both my VPN IPv4 addr and one random Sprint IPv6 addr.

It would be great if all the clients behave consistently the same as the primary. Maybe there is an option on VPN Hotspot APP to disable IPv6 support?
[Android Apps and Games] Mygod Studio:
Care to share your device model and Android version? I can't reproduce this on 2 of my devices.
[Android Apps and Games] Mygod Studio:
Correct. For now the app doesn't do anything for ipv6 and it will indeed cause DNS leak. I could consider adding a drop rule in the next release.
[Android Apps and Games] Mygod Studio:
It may appear random to you simply because that's how IPv6 tethering works - your carrier assigns you a subnet in which your device can assign other devices a unique global IPv6 address(es).
[Android Apps and Games] blambo:
I've done this with many devices, both with phones, and LTE tablets, mostly old including one with a terribly broken screen, and a couple fairly new. The old ones are now re purposed as standing OpenConnect VPN 'hotspots'. All are rooted, most with custom ROMs.:

LG Pad v410 (2 units) Marshmallow

Nexus 7 2013 LTE (3 units) Oreo

ASUS Fone4 (2 units) Lollipop

ASUS PadFone S Marshmallow

OnePlus One (3 units) Oreo

OnePlus 3T Oreo

Pixel 2XL Oreo

They all work as Repeater and Tether, with varying versions of tunnels. Shadowsocks, OpenVPN, OpenConnect, AnyConnect (all first tested on private VPS servers worldwide), then with several commercial VPN providers as well. Nord, Zoog, Winscribe, TorGuard etc.

OT-The fun stuff is where I use little travel routers to connect to the primaries.

From super cheap $5 Chinese models... to fancy Netgear and GL.inets, even a really old ASUS 330NUL. They work so well that I giggle a little each time I connect to them. Rock stable.

The travel routers continue to stay connected to the primary, with VPN enabled, so I can then connect all secondary devices to the travel routers... and not have to mess with disconnecting the primary to do so.

The reason it isn't working for you may be in my poor explanation skills, and for that, I apologize.

You are able to connect to the hotspot. Then, what style, type, app for VPN access? We can start from there.
[Android Apps and Games] Mygod Studio:
Oh, sorry. I meant that there shouldn't be a particular order in which you connect the clients to host and connect host to VPN. This app is designed to work either way. Are you sure doing this is absolutely necessary on all or just some of your devices?
[Android Apps and Games] TopGun2000:
That's great. I am worried that some web servers prefer IPv6 addr over IPv4 addr, so they may communicate directly with my secondary device through a pair of IPv6 addresses. That may defeat the whole purpose of the VPN tethering on the primary device.

Good to know. Now I understand this better. :D
[Android Apps and Games] Mygod Studio:
For now you can use temporary hotspot (for Oreo) or repeater to prevent ipv6 leaks.
[Android Apps and Games] blambo:
Good point. I do know that on older primary devices, secondaries can't connect to the primaries with VPN enabled. That's the way it is with all VPN tethering apps. You have to connect secondary to the primary first, and then activate VPN on primary .

Will take a close look into connecting to the newer primary devices, with VPN activated, in both Repeater & Tether modes, and I certainly do hope that you are right.
[Android Apps and Games] kingbenzima:
Is it possible to use this app to share my wifi connection to my laptop?

---------- Post added at 04:28 AM ---------- Previous post was at 04:09 AM ----------

Also it gives me an error saying I need manage user permission
[Android Apps and Games] rogeriskira:
Thanks so much for this app! I was using an Android terminal before this. Now it's a simple tap that's great. I did notice something... When I'm using VPN with the hotspot activated I noticed I can no longer reach 192.168.1.1 (my router settings). Unless I turn off hotspot I am no longer able to access that address. Any ideas?

Edit: I noticed I can't access any local addresses through my home VPN.
[Android Apps and Games] Mygod Studio:
Yes.

Ignore that error and use system tethering interfaces for now.
[Android Apps and Games] Mygod Studio:
When you have VPN enabled, traffic are forwarded to remote depending on your VPN app. Please check if you can access 192.168.1.1 on your phone (the one you're using VPN hotspot) with VPN on. If not, your clients won't be able to access them either.
[Android Apps and Games] Mygod Studio:
I added a switch to disable IPv6 on 1.3.1.
[Android Apps and Games] fxsheep:
[MENTION=5243610]Mygod Studio[/MENTION] can you please support older Android API level,since I have an old phone for tethering and it's Android 4.4.4 an I can't install this app.
[Android Apps and Games] Mygod Studio:
Contributions are welcome.
[Android Apps and Games] TopGun2000:
Really appreciated it. Works like a charm.
[Android Apps and Games] jacomail95:
Just a question, would it be possible in future to make the wifi repeater enabled and working in non-root mode like in Netshare application? That app partially works for me but it has bugs
[Android Apps and Games] Mygod Studio:
After turning on Wi-Fi hotspot, click "monitor" in top right.

This app should work without root. To share Internet, use another proxy server app. For more, read here: https://github.com/Mygod/VPNHotspot/issues/62
[Android Apps and Games] ScrapMaker:
Thanks for the clarification. Yes I have used that before, but it does require a bit of manual intervention to start the process after every reboot, or when it does randomly.

This is a really cool app, and works well, so I'm definitely not complaining. I am merely looking for a way I can automate the hotspot via Tasker without having to resort to AutoInput tapping on the screen to accomplish this. That's why I was digging for intents. If there was a way to set the temporary hotspot details, and trigger it externally, that would be ideal. This way no battery would be wasted on monitoring, quick setting icon could replace native tethering, and automation-heads like myself could trigger your solution as well. Mostly this stuff triggers for me when I get in/out of the car, so I try to avoid fiddling with these things for the most part and prefer automations.

Anyways, thanks again! I feel more and more people will become aware of this as they upgrade to Android 11.
[Android Apps and Games] S.Mayer:
Is there any documentation about VPN services to use or to avoid for use with VPN Hotspot? Are there specific features to look for when choosing?

I didn't see anything about this on github nor here in this thread (although searching the thread is harder, and I may have missed it).

I've never paid for a VPN before, but this looks like it could help me put my 'unlimited' data to better use. I'd rather pay for a VPN than pay an extra fee to my provider.
[Android Apps and Games] Mygod Studio:
Free VPN or even some of the adblockers work. See here: https://github.com/Mygod/VPNHotspot/issues/139
[Android Apps and Games] S.Mayer:
Thank you. I did see those, I guess I just assumed they were less-good alternatives for people who didn't want to pay for a VPN.

In my case, Verizon wants $5/mo to add tethering to my unlimited plan. Since that's not too far off the price of mulvad, which seems popular, it seemed to make sense. So I thought I'd try to look into other options as well. In addition to sticking it to Verizon, I'd also gain some level of protection against them noticing what I'm downloading. I have received a few notices from my old ISP about torrent downloading activity...
[Android Apps and Games] Mygod Studio:
In that case you probably want to have a VPN. Any VPN that provides a decent speed should be good.