yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] azndan2:
OP, I'm using this app now on Verizon with private internet access VPN . It's so convenient. Thanks for making a great app. I hope that you continue to support it as this is really helpful in taking back our right to do what we please with our internet service.

---------- Post added at 03:28 PM ---------- Previous post was at 03:27 PM ----------

I would be glad to pay for a premium version to support you.
[Android Apps and Games] frozonecom:
Hello op, I am using this app on google pixel 2 to tether my vpn connection to my win10 laptop. However, my laptop shows that I still have no internet access. Can you please help me?
[Android Apps and Games] Mygod Studio:
You could export debug information and post it here / create an issue at GitHub / send it to me so that I could have some idea what's going on. Also it would be helpful to know what VPN app you're using if there's one.

Thanks. I'm not bothered to go make a premium version but I am very happy to accept donations.
[Android Apps and Games] Mygod Studio:
Oops duplicate post.
[Android Apps and Games] frozonecom:
Hello. after trying to connect to the wifi hotspot created by my pixel 2. Still no internet. I'm using the app 'HTTP Injector' for VPN services.

Ill try to post the debug log when I get on my laptop with internet. Till then,
[Android Apps and Games] enga018:
Can I have a proper guide? My friend cant connect when i switch on vpn? (solid vpn) and, this app dont help me.
[Android Apps and Games] blambo:
This is an incredible app. No one has been able to do this before. And many many have tried. Thank you so very much for this.

It's real for real 'travel router' app now on my phone, a WiFi Repeater and Hotspot combined that supports WISP, and tethers OpenConnect VPN. Hello, most routers on the market today do not have any kind of OpenConnect client interface.

Did somebody in the back of the room just say "You're kidding! You can use this as a router and slip all of your devices through the GFW of China via secure OpenConnect SSL, TLS 1.2"?

Yes, yes indeed, you can. HUZZAH!

This is a HUGE app. The best of the best. Again, my deepest thanks.
[Android Apps and Games] Nodierg1:
How could I use it without root?

I was thinking about making commands similar to a structure like

adb shell pm grant [package / app name] android.permission.WRITE_SECURE_SETTINGS

But in that case what would be the permissions to enable by adb.
[Android Apps and Games] Mygod Studio:
The most important part that requires root is fiddling with iptables, which Android of course wouldn't expose any API for you to do, and the only way to do this afaic is with root.

Viewing tethered clients should still work for non-root devices though.
[Android Apps and Games] TopGun2000:
This is what I have observed and is really confusing to me:

1) Enable native WiFi hotspot and start an OpenVPN connection on my Nexus 5X running Android 8.0 with root on Sprint

2) Enable wlan0 interface in VPN Hotspot APP

3) Running http://www.whatismyip.net in the Chrome browser on my Nexus 5X, and get two different IPs when VPN turns on / off (IPv4 addr for VPN server, IPv6 addr for Sprint LTE)

4) Connect my PC to the WiFi hotspot provided by N5X, run http://www.whatismyip.net in the Chrome browser of PC, and always get the third IP which is different than two IPs I see on the N5X, no matter VPN Hotspot turns on / off. The funny thing is that if I run speed test on my PC client, I can always see the speed limit enforced by the VPN server when VPN hotspot is on, but the IP address checked by "whatismyip" is not my VPN server's IP.

I'm guessing Android 8.0 handles speed test traffic differently so it can be routed through VPN hotspot while web traffic cannot?

Update:

checking client IP on mxtoolbox.com/whatismyip actually gives me my VPN server's IP when VPN hotspot is on. Very bizarre...
[Android Apps and Games] blambo:
Long version:

In primary device WiFi settings, set up the native hotspot, (SSID & pass). Keep hotspot off, exit settings. Bring up the 'VPN Hotspot' app, click on, and activate 'Tethering', then 'wlan0'.

NOW connect all of your secondary external devices to the primary tether and receive an IP address.

THEN connect to your VPN on the primary . All secondary connected devices will be tunneled through the primary's VPN.

If you disconnect a secondary, then want to reconnect the secondary to the primary's hotspot, you will have to disable the VPN on primary, then connect secondary, then reactivate the VPN on the primary.

Short version:

Connect secondary devices, including Windows machines, to primary hotspot, receive IP address before you activate the VPN. (AFAIK this is true of all VPN tethering apps.)

It may sound tedious, but really it's not. After you do it once, you'll get it. Super easy.

Note: Same drill in 'Repeater' mode.
[Android Apps and Games] Mygod Studio:
You need to also turn on softap0.
[Android Apps and Games] isthisadagger:
With softAP on still no change. Can not connect to websites or sites in my VPN from my phone. I can not ping anything on the vpn or externally.

Ifconfig shows me interface tun0 has the IP 192.168.1.201 which is from my VPN.

When switching on hotspot and soft ap I can see a new line in /proc/net/route for softAP.

The last try in the logfile starts at around 23:33h.

Do I need to activate/set anything else in the app or on the phone?
[Android Apps and Games] AndreBernardo13:
Hi OP,

Im just new to this. Ive read the whole thread until the last. Im currently using a local VPN with tethering capability here in PH. Im about to try your app. I hope it works well and if it does I can install it to my clients and you can expect a monthly donation for every user!

The local VPN we are using makes the local carrier's internet (5GB/mo, with 3Mbps) to unlimited. I hope i could do it to you app as well.

Thank you,
[Android Apps and Games] AndreBernardo13:
Correction. I got confused on what I was using. Im currently using tsl/ssl on KPN. I thought it is the same as VPNs. My bad.
[Android Apps and Games] Mygod Studio:
Based on the log, I don't think there is anything connected to your soft AP. Please elaborate more on your setup.

This app doesn't care the underlying VPN implementation as long as it uses Android's VpnService interface.
[Android Apps and Games] Mygod Studio:
In that case I don't think this is an issue caused by my app. Please report to your device vendor.
[Android Apps and Games] doumer:
wow, really need some new glasses.

here's the log: View attachment 4693548
[Android Apps and Games] Mygod Studio:
Can you try to run this on your phone with root? `su -c 'iptables -A vpnhotspot_fwd -o p2p0 -j ACCEPT'` and see if that fixes it. You can do it using adb shell or any terminal app.
[Android Apps and Games] doumer:
when I enter that I get the following output: iptables: No chain/target/match by that name.

is that expected?
[Android Apps and Games] Mygod Studio:
Oh you need to run that AFTER you start the service in my app.
[Android Apps and Games] doumer:
[MENTION=5243610]Mygod Studio[/MENTION] oh ok. this time terminal gave no error but still no internet on connected clients :(
[Android Apps and Games] Mygod Studio:
Okay after you run that, export debug information again.
[Android Apps and Games] NightFox029:
Hey thanks for the awesome app,just a small question,does it break VPN encryption if I use it as a mobile hotspot and browse internet using PC or other smartphones?
[Android Apps and Games] Mygod Studio:
I don't think so.
[Android Apps and Games] wheelee:
hi, Any Chance to make it work on a NON-rooted phone? this would be useful here in the middle kingdom where we can't see the outside world!

thanks.
[Android Apps and Games] samarium:
If it would work on a non-rooted phone, then it would be easier than having to use root, so the only reason to use root is because elevated permissions are required and there isn't a API that can be called to accomplish what is needed.

However if you can point to a non-rooted phone with an API which allows the OP to do the things he needs to do, then I expect he would be interested.

Given the OP seems to have a middle kingdom flag, I guess he has some sympathy with your situation, which may even have been the genesis of the app.

Having looked at the iptables situation in the past, it seems like there are some basic shortcomings in the default system setups for tethering and vpn which if fixed would mean this app would be less required, however sharing a VPN connection is a niche application, so I don't expect much help from the big vendors is making it work. Certainly VPN make google's data stream less clear, so I don't expect them to be much interested.
[Android Apps and Games] lohanchien:
Hmmm.. app was working great but crashes on launch now after updating to the Feb patchset.

Pixel 3 XL

ElementalX kernel

Pie on Feb patch

Log attached
[Android Apps and Games] Mygod Studio:
https://github.com/Mygod/VPNHotspot/issues/62

It's working fine for me with Pie Feb 19 patch as well. Try a reinstall or report it to your ROM developer.
[Android Apps and Games] lohanchien:
Already tried reinstalling many times and I don't have a custom ROM
[Android Apps and Games] wheelee:
found a old Pantech Sky A900 that was rooted, installed the app + FREE VPN shared to LG G7 & wooT passed through the "checking for update" screen & I got to set it up with it's new ROM.

before connecting to my wifi/ data/ friends wifi even overnight will not get pass the checking for update screen since we are surrounded by the great firewall here in the middle kingdom.

thanks for this app it simplifies the network settings for us mortals ;)

vpn router doesn't work here anymore :(
[Android Apps and Games] jacomail95:
Interesting, I can't find this app any more on Google Play Store, it says not found. Got removed by them or by the dev?
[Android Apps and Games] lohanchien:
Yeah something is definitely odd. The app stopped working for me recently. I thought it might be the P feb patchset but I also had a Carrier Services update that probably broke the app. My guess is the app doesn't abide by the new permissions policy google pushed recently but that was mostly related to phone and sms permissions so not sure
[Android Apps and Games] Mygod Studio:
Got removed by Google. I will fix this in a few days.

You should probably report that issue to Google because it seems to be a UI bug introduced by Google side. (but you seem to be using custom kernel as well btw)
[Android Apps and Games] Vortell:
It's still in fdroid!
[Android Apps and Games] basiouny:
Thanks, I really appreciate the effort that you put in this app. I use it as a repeater is there any way to hide the broadcasting name on repeater status like hiding SSID name on hotspot?

I searched the post but I couldn't find anything related.
[Android Apps and Games] Alister.:
Great application, recently having trouble however. I have used this successfully on Touchwiz and LineageOS i was using LineageOS with this on my current phone, which is a Xiaomi redmi note 5 pro, i've switched to using MIUI 10 - 9.1.24 Global.

The hotspot on the phone itself works fine, if i click on Wi-Fi hotspot inside VPN Hotspot itself it prompts Allow modify system settings, if i click allow and turn the hotspot on it works fine with Nordvpn running in the background.

If i click softap0 the internet stops working entirely, if i turn off softap0 still doesn't work if i turn the hotspot off and turn it back on still won't work the only way to get the phones hotspot working again is restarting the phone, i tried turning off mobile data and turning on aeroplane mode, only a phone restart can get it working again.

I've tested this on versions 2.1.4, 2.2.3, and 2.30 the latest on the play store, i've looked inside developer options it doesn't appear i have a Tethering hardware acceleration feature there i've looked several times.

Also i have to click softap0 a few times before it will prompt to grant root access, where i haven't seen that happen before, i assumed it simply wasn't working at first. Also if i restart the phone and try to turn the hotspot on through VPN Hotspot again it will prompt to enable Allow modify system settings even tho i have previously done it already.

I'm using Magisk 18.1 Magisk Manager is v7.00 and i've put No restrictions for Battery Saver.

Appreciate any help i figure this issue has something to do with MIUI 10
[Android Apps and Games] tholmes8291:
I'm just starting to try to use this and am having some trouble. Can someone explain what softap0 is? Thanks
[Android Apps and Games] samarium:
Dont know if related, but there have been problems with 18.1 in general. Have you tried with 17.3?
[Android Apps and Games] Alister.:
Turn the hotspot on, visit ipleak.net you will see your i.p address and a few dns servers after this turn on softap0 on refresh the page you will see your i.p address has changed to that of the vpn server your connected to.

It means the hotspot is successfully using your vpn, if your i.p address and dns sever match it means your dns requests are going through your vpn server been encrypted if you still see multiple dns severs after your main i.p has changed it may or may not mean you have a dns leak, but if your vpn service is using public dns servers like google dns then seeing there dns addresses make sense.

Public dns servers won't be encrypted you can use dnsleaktest.com and android features Always-on VPN and Block connections without VPN are worth looking into turn off battery optimization on your vpn application otherwise it will be automatically shut down.

Also a hint that's hard to notice, a lot of times if you turn the hotspot on and turn on softap0 after the vpn won't work at all, to make it work i normally turn the hotspot button on and immediately turn if off then turn it on again then click softap0 and it works.

If you just click hotspot 1 time and turn the softap0 on it won't turn on hotspot needs to be turned on 2 times then softap0 i was messing with it for hours to work it out.
[Android Apps and Games] tholmes8291:
I really appreciate the explanation. How do I turn on softap0 tho? I can't figure that part out
[Android Apps and Games] doumer:
sorry, took me a while, here's the log (had to zip, txt files that large are not allowred).
[Android Apps and Games] Alister.:
Yeah i was having issues with 18.1 passing safetynet months ago, i did swap to 17.3 it didn't fix it, interestingly tho if i turn softap0 on the hotspot stops working but now i can just turn it off and internet will resume working where when i was using 18.1 i would have to restart the phone to get the hotspot to be functional again. Thinking about ditching MIUI i no if i flash something else it will work.

---------- Post added at 03:09 PM ---------- Previous post was at 03:04 PM ----------

If you open the application you can't see softap0 as soon as you turn on Wi-Fi hotspot softap0 appears above Manage system tethering you click the button next to softap0 to turn it on.

When you turn on Wi-Fi hotspot it should prompt you to grant VPN Hotspot root access allow it, maybe you already have so it won't ask again.
[Android Apps and Games] tholmes8291:
Mine shows wlan0. Is that ok?
[Android Apps and Games] Mygod Studio:
No. I don't think it's possible without changing your driver (which this app does not intend to do).

FYI I'm using it with 18.1 and it works alright.
[Android Apps and Games] HeRoKaNe:
Hello there,

Thanks for the great app. I've been on the hunt for something like this for a while with no luck.

I use 'HTTP Injector' for VPN through SSH. The app has a tethering option that requires root permissions. It works on other phones but not on mine which is a rooted Redmi Note 5 running MIUI 10 over Oreo 8.1.

Please take a look at the logs from VPN Hotspot dropbox[.]com/s/iz6sbl3z5kr2xyi/vpnhotspot-1993598665466178764.zip?dl=1

Sorry for uploading the logs to Dropbox, but I can't seem to attach files here or post a link for some reason. Maybe because I'm new to the forums.

Thanks in advance.
[Android Apps and Games] App Addict:
Sharing a VPN connection over hotspot or repeater sounds amazing! But, is there any tutorial to learn the a to z processes, even my phone isn't rooted yet. Will try very soon both of root my device and share VPN with others. Thanks for sharing these cool apps with us.
[Android Apps and Games] wheelee:
since last week almost all veepee n's aren't working here in the middle kingdom coz there is an upcoming cppcc meeting & this is when the great firewall is at it's strongest!

even shadow*socks is having a hard time. I 'm trying goa*gent but it seems this time it's more tedious to setup & is not free anymore. what do you use ?
[Android Apps and Games] Mygod Studio:
Looking at your log, it seems to be working fine. What seems to be the issue?
[Android Apps and Games] HeRoKaNe:
Thanks for getting back to me.

That's the strange part. It shows that it's working, but I can't open any website on my laptop unless I use the Hot Share option in 'HTTP Injector' which requires a proxy to be set in all connected devices which is a huge pain since some apps don't even work.
[Android Apps and Games] Mygod Studio:
Upon further inspection, it seems like you also used other VPN tethering tools. Do a complete reboot to remove routing rules added by those poorly written programs.
[Android Apps and Games] HeRoKaNe:
I just did. Same problem still exist. Here is a new log plus a screenshot of what I'm getting in chrome on may laptop.

dropbox[.]com/s/7smamtdv1o8pj5e/vpnhotspot-3549948390191573908.zip?dl=1

dropbox[.]com/s/bpzmwc79i440947/screenshot.png?dl=1
[Android Apps and Games] rootlover69:
Is this a free VPN app?
[Android Apps and Games] thezinq:
Try for yourself...
[Android Apps and Games] samarium:
Read the Original Post, as you should do in all threads before asking questions, and then ask yourself, is this app providing a VPN to use or is this app using a VPN?
[Android Apps and Games] Force F:
Thank you so much for this great and useful free app, I have been using it for few months now with no problem , however I having an issue with the always on and block connections without VPN , please see below details of the issue :

Device is Motorola G5 Plus XT1685 rooted with custom rom ArrowOs android pie 9

*I have a paid subsections VPN provider with their own app installed on my phone and I use their app .

*I have the option always on and block connections in VPN setting next to my provider app on my phone and I toggle them successfully and the result is no data on my phone when I turn off the VPN app and try to brows the net from my phone (not from my laptop ) all good here as the android setting is working fine by blocking my data access....

***the problem is when I use my phone as hotspot and connect my laptop to this hotspot via your app VPN Hotspot, im still able to access the net(my VPN is turned off) from my laptop using my mobile hotspot with my true IP even though I have the setting on block connection without VPN,

The always on VPN and Block connections without VPN seems to be NOT working when the phone is used as a hotspot and working fine when accessing the net directly from my phone

Please note this is app is working perfectly when I activated my VPN app, true IP is hidden when using my phone as hotspot and connect to the hotspot from my laptop.

Hope you can help on this

Many Thanks
[Android Apps and Games] Mygod Studio:
No. You have to pay me to use VPN via donations.

Reading your log, it seems like this app picks up 62.240.110.198 as the DNS server that you are using on your phone. Could you verify that this is correct? (I couldn't connect to this server from my end)

I think this is the expected behavior of Android system as Android does not tether VPN connections (without this app that is). There used to be a strict mode in this app that does the similar functionality and it was removed in favor of allowing clients on different tethered interfaces to talk to each other.

EDIT: After looking at the code, I currently do not intend to add back this feature but contributions are welcome. As an alternative, you can use 2.1.4.
[Android Apps and Games] Force F:
I think this is the expected behavior of Android system as Android does not tether VPN connections (without this app that is). There used to be a strict mode in this app that does the similar functionality and it was removed in favor of allowing clients on different tethered interfaces to talk to each other.

EDIT: After looking at the code, I currently do not intend to add back this feature but contributions are welcome. As an alternative, you can use 2.1.4.[/QUOTE]

Thank you for the prompt reply, I really hope you bring back this option to allow the use of always connections to VPN while tether via your app, for the time been I will look to download the older version of your app as you suggested..
[Android Apps and Games] HeRoKaNe:
Who is picking this DNS server? The 'HTTP Injector' app, the android system or my my carrier?
[Android Apps and Games] optionalmgrr.la:
sorry for the stupid question but

repeater -> share wifi to wifi

hotspot -> share mobile/4G to wifi

temporary hotspot -> for what?? besides the randomly ssid and password

thx!
[Android Apps and Games] Mygod Studio:
It should probably set by your VPN, whichever you are using. Can you confirm whether this DNS is working correctly?

Same as hotspot.
[Android Apps and Games] HeRoKaNe:
I used 62.240.110.197 / 62.240.110.198 on windows 10 and I couldn't connect to the internet. That's strange because the same DNS works just fine on my phone.
[Android Apps and Games] Mygod Studio:
Which VPN are you using?
[Android Apps and Games] HeRoKaNe:
Same app "HTTP Injector" through SSH.

BTW, this DNS is provided by my carrier NOT the VPN app. I checked.
[Android Apps and Games] optionalmgrr.la:
thx for reply! so the only difference is that it gives you a random ssid and passphrase?
[Android Apps and Games] Mygod Studio:
The other difference is that it is less managed by the system so potentially more useful in bypassing tethering limits.
[Android Apps and Games] Mygod Studio:
Fixed via https://github.com/Mygod/VPNHotspot/commit/d641af5d40003eca163cdee7a914ccef74d5d41b. It will be included in the next release.
[Android Apps and Games] HeRoKaNe:
Thanks, man. Can't wait to try the new version.
[Android Apps and Games] HeRoKaNe:
I updated to v2.3.3 bu the problem still exists. Is 2.3.3 the new version you were talking about?
[Android Apps and Games] Mygod Studio:
Yes. You can export another debug information
[Android Apps and Games] HeRoKaNe:
Here it's https://www.dropbox.com/s/p76ac14fc92wxeu/vpnhotspot-2206877804512357508.zip?dl=1
[Android Apps and Games] Mygod Studio:
You are using this app with other VPN tethering app. Do a complete reboot and use this app only.
[Android Apps and Games] HeRoKaNe:
Here is the new log:

https://www.dropbox.com/s/veuq5na1ifzl1co/vpnhotspot-7745292943067094177.log.zip?dl=1

I rebooted the phone, then connected to VPN using "HTTP Injector". I didn't even try to tether the connection using "HTTP Injector".
[Android Apps and Games] yassero:
Is there any way this app can work with out rooting?

On my android box which is rooted, it gives 'There was a problem parsing the package'. Any fix to that?
[Android Apps and Games] ravenua:
Hey. Thanks for the app. Quick question though - I try to chabve the network name and password and it does not allow me to. I get some floating kotlinNullPointerExeption error. Any ideas why?
[Android Apps and Games] Mygod Studio:
Disable hardware tethering acceleration.
[Android Apps and Games] Mygod Studio:
Export debug information to me and I'll take a look.
[Android Apps and Games] ravenua:
There you go - LINK. Thanks!
[Android Apps and Games] HeRoKaNe:
I can't find this option anywhere including the Developer Options. I'm on MIUI 10 over Oreo 8.1.

Is there a way to check "Hardware Tethering Acceleration" and disable through the terminal?

Update:

I ran 'dumpsys connectivity tethering' through the terminal and that's the output:

https://www.dropbox.com/s/rm005z6x7xlkuvg/dumpsys_connectivity_tethering.txt?dl=1