yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] J_Palito:
Hi

I've been digging this post and google and found no answer to my problem, so here it goes...

I realize that Drony only works with well behaved apps that use global proxy settings and doesn't work with UDP, for example.

But I also read that Google Play and Youtube work fine.

Well... That's not my case and I've been trying to understand why, if it's design or if I've made some mistake somewhere...

I have configured Drony to access our corporate proxy. It connects fine.

I have the proxy settings in the wifi connection pointing to Drony, (localhost:8020).

Most apps connect fine when Drony is active: JuiceSSH, Connectbot, Township, Chrome, Firefox and News+.

But apps like Hangouts, Youtube and Play Store don't. There is no connection.

The only (known) ports allowed on our proxy are HTTP and HTTPS.

Have I misconfigured anything?

I also tried using connectbot to tunnel all traffic through my tunnel but no success (app->connectbot->drony->proxy->freedom (I mean, Internet))

Aside from from this hiccup I'm suffering, this is a really great app for someone who used ProxyDroid and ASPRoxy, specially if rooting is not an option.

Thank you!
[Android Apps and Games] touteck78:
My proxy setting is: 148.151.141.5:8080 and I'm getting this log when I enter 8080:

Viber<->aloha.viber.com:5242

WhatsApp<->e6.whatsapp.net:5222

Google Account Manager<->googleads.g.doubleclick.net:443

Google Account Manager<->googleads.g.doubleclick.net:443

addDnsServer add to vpn: 148.151.170.206

addDnsServer add to vpn: 148.151.202.27

interfaceAddress: /10.49.6.171/27 [/10.49.6.191]

interfaceAddress: /fe80::522e:5cff:fed3:13e6%wlan0%35/64 [null]

interfaceAddress: /127.0.0.1/8 [null]

interfaceAddress: /::1%1%1/128 [null]

addRoute : 172.16.0.0/12

addAddress : 172.16.0.1/12

Proxy listening on 127.0.0.1:8020

Proxy listening on 127.0.0.1:8019

!!!active network is set with networkInfo: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "dlink AP", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false] linkProperties{InterfaceName: wlan0 LinkAddresses: [10.49.6.171/27,fe80::522e:5cff:fed3:13e6/64,] Routes: [fe80::/64 -> :: wlan0,10.49.6.160/27 -> 0.0.0.0 wlan0,0.0.0.0/0 -> 10.49.6.161 wlan0,] DnsAddresses: [148.151.202.27,148.151.170.206,] Domains: null MTU: 0 TcpBufferSizes: 524288,1048576,2097152,262144,524288,1048576 HttpProxy: [localhost] 8020 xl= }

Thanks for your help
[Android Apps and Games] SandroBSupp:
If only allowed ports are 443 and 80 then also ssh server should listen on 443 to get through upper proxy.

Also Drony uses vpn mode so there is no need to set android proxy to localhost:8020.

Vpn mode will intercept all traffic. One hickup here is that you still have valid dns server because Drony tries to resolve then tcp/ip from vpn mode to hostname before makes request to upper proxy.

If there is no dns server in local lan you can try to use dnscrypt settings in Drony.

Then even dns requests to through upper proxy to internet.

Hope that helps. Or send mail to supp.sandrob@gmail.com to help you more.

There are many possible configuration and Drony can be configured very differently to solve them.
[Android Apps and Games] SandroBSupp:
Try to delete android proxy localhost:8020. Drony should use just vpn mode to redirect traffic.

Also try to use dnscrypt option in Drony settings.
[Android Apps and Games] J_Palito:
Great! I'll try it tomorrow morning and I'll post the result!

Thank you very much!

edit: Forgot to tell that my ssh server listens on 443 :p I have no problem connecting to it via Connectbot or JuiceSSH when Drony is active.
[Android Apps and Games] SandroBSupp:
You need to set default rule to local proxy to use connectbot.

Similar as is for just clash of clans in this video: https://www.youtube.com/watch?v=s9ftK6S__bo
[Android Apps and Games] J_Palito:
Well...

It's a no go... I'll send you a mail later with prints on this subject.

Thank you!
[Android Apps and Games] touteck78:
I tired both solutions suggested but still whatssap & Viber not working
[Android Apps and Games] pier11:
Hi Author!

Great app, enjoying it much. Using everyday.

One strange thing though. Possibly site config, but it's reachable fine if go directly from cell phone, or from other tethered devises (not using Drony's proxy).

If go via Drony's proxy (from tethered device) connection to the site times out (it looks tries IPv6). All the rest of Internet is accessible just fine.

VPN is not active (I cancel on start). No config changes other than allowing external visibility of the proxy and it's port change.

Phone is Galaxy Note 5, provider's version, not rooted.

Troublemaker site: saverocity.com

So just can't access it (and only) from my laptop via Drony's proxy. (And I'm typing on XDA via this config.)

Thanks!
[Android Apps and Games] Phil750123:
Hey was wondering if anyone could help, through work we have an app that needs to get out to the web externally (only to 1 website) however we want to use it over our corporate wifi which requires proxy and log in details. I've entered the proxy in wifi advanced settings but obviously there is no way to enter credentials. I've heavily researched it , and as we cant root this app looks a good option, however it is a security risk entering log in details to a "3rd party app".

Does anyone now a way to do this another one? i.e. through the command line which we can then script to run through our management tool (soti)

Any help would be much appreciated.

On a side note i cant believe this isnt built into android! you can even do this on IOS!
[Android Apps and Games] koboi.ngangkang:
great app author! one question is, why app that connect to port other than 443 is delayed or is not connected at all?whatsapp uses 443 and 5222. there is other app that uses other port too. any help?
[Android Apps and Games] mangusZen:
Drony is litterally destroying my battery in few hours.

Do Sandro proxy work with android N ?

It worked much better.
[Android Apps and Games] SandroBSupp:
Well you can set up somewhere proxy that does not needs credentials and use it for android if this bothers you.
[Android Apps and Games] SandroBSupp:
It should work with N. Some changes were made about battery but not yet available on Google Play. Send mail to help you more.
[Android Apps and Games] SandroBSupp:
Probably those ports are blocked by your upper proxy. For some apps Drony event changes port if it is possible and server also works on 443 (TeamViewer). For Clash of Clans this can not be done.

But with use of some other tunnel apps (ssh port forwarding, tor, shadowsocks) you can make it work. https://www.youtube.com/watch?v=s9ftK6S__bo
[Android Apps and Games] koboi.ngangkang:
can we set app to connect to certain port with drony?

if not, will be there such menu?:D
[Android Apps and Games] SandroBSupp:
No but could be done. Sandroproxy has this feature.
[Android Apps and Games] Phil750123:
Do you happen to have the apk posted anywhere?
[Android Apps and Games] SandroBSupp:
No, but I can send you. Recently I'm working to add local shadowsocks tunnel to drony so it also contains this feature.
[Android Apps and Games] Lahorie:
Error 407 Authentication Error

I have been using "Drony" to connect my android device to my office network via hotspot. The office network requires authentication via Proxy server with Username and Password.

So far the "Drony" app has been working perfectly with most of apps like Google Play Store, WhatsApp, Firefox & online games like SimCity BuildIt.

I have installed an online game "Call of Duty: Heroes" on my mobile device. The games failed to connect via "Drony" with giving Error 407 Proxy Authentication Required (Access is Denied) [Screenshot enclosed]. The same game is connecting perfectly with Mobile Data Connection and on WiFi connections with NO proxy servers.

Please suggest a solution to the Error 407.

The link of screenshot of Error 407 is below:

dropbox. com/s/8mke33n3bbtfi87/Screenshot_2016-09-23-14-44-06.png
[Android Apps and Games] SandroBSupp:
Reason could be that some servers, ports are blocked by your upper proxy.

Consider using some tunnel to bypass those restrictions. Video how use tor just for clash of clans with Drony.

https://www.youtube.com/watch?v=s9ftK6S__bo
[Android Apps and Games] Lahorie:
Many Thanks for providing the solution.

After configuring "Drony" as shown in tutorial, The error "unable to resolve host "<<proxy server URL>>": No address associated with hostname" kept on appearing for any app trying to connect to the internet.

I checked the Orbot and it is having problem in connection. I shall update info if i get some breakthrough. Maybe its because of network connection.
[Android Apps and Games] kvic-z:
Drony on a phone which also acts as a hotspot

Hi,

Irony is an awesome app. Thanks!

I'm new to Drony and using it on my phone mostly through cellular connection. Not sure if it's less common scenario among the audience. Mainly make use of the NOT-LISTED-NETWORK profile for the task. Works great for me.

I run into a little problem if I enable personal hotspot on the phone. Other phones cannot associate wirelessly to my personal hotspot. If I turn off Drony, then they could successfully associate with my phone's hotspot.

I would ask the audience and expert users of Drony if there is a way to resolve the issue i.e. Drony and phone's hotspot turned on at the same time.

thank you
[Android Apps and Games] ivanosky:
Hi, I'm using Drony on a Nexus 6p. After updating to Nougat Drony is causing severe battery drain, it uses 30% of battery. It even makes the phone charge very slowly. After I disable Drony the phone starts charging rapidly again. This didn't happened on Marshmallow.

Hope you can fix this. Otherwise the app is great!

Thanks in advance
[Android Apps and Games] SandroBSupp:
Can nto test on N yet, so any more info what is going on would be very helpful.
[Android Apps and Games] SandroBSupp:
Never try to use it that way. But Drony is meant to be used as client app not as much as gateway for other devices.
[Android Apps and Games] ivanosky:
I started using Drony again to take a screenshot of the battery section in Android settings. This is what it looks like. If you need anything else to fix it, let me know.
[Android Apps and Games] ivanosky:
This the Drony battery detail screen
[Android Apps and Games] ivanosky:
UPDATE: So I tried using Drony without the VPN mode and it no longer shows on the top Apps in battery usage, it shows in the bottom of the list with only 1% of battery usage. I'll use it like this for now, although some Apps don't use Android proxy settings and can't connect (Facebook Messenger, Outlook and others)
[Android Apps and Games] SandroBSupp:
Sorry can not test it on N so far. Will try to.
[Android Apps and Games] tvcat-xda:
hi SandroBSupp, thanks for the nice app.

i need help on filter rules.

i got confuse on how to do this.

what i want to do is only allowing certain app to use proxy, other app should direct connect to the internet, how do i set this in the filter?

anyway im using pac. thanks
[Android Apps and Games] SandroBSupp:
Default filter value should be Direct all. Then you add rules Allow for apps that should use proxy.

Let me know how it goes.
[Android Apps and Games] tvcat-xda:
i think it work now.

the grey tick mean direct, correct?

the first time i set the filter rule at the settings page but not working then it work after i set it in the wifi setting.

where the rule in the settings page apply to?

thanks.
[Android Apps and Games] SandroBSupp:
Grey means direct yes.

Must say that I forgot why rules is settings tab. Probably default ones that works first before wifi specific happens...
[Android Apps and Games] luweitestgmail:
Not work for unrooted USB tethering network

Situation: Computer(WindowsXP) have internet access but phone(XiaoMi4s, un-rooted) have not. I try to connect to internet through USB tethering. The tethered IP address is 192.168.42.1(XP) and 192.168.42.129(phone).

ICS is set on XP machine, but phone still cannot connect, I think it's because gateway cannot be added lacking root privilege, for I have successfully done that on another rooted phone after running command "ip route add default via 192.168.42.1".

Unwilling to go intimidating rooting process, it seems I have to use proxy. Android only let you set proxy for wifi networks, and fortunately phone can connect to a wifi AP, though without internet access. If I set a HTTP proxy on XP, phone can browse internet by setting android wifi proxy to it. But that's not enough, for I have apps that need protocol other than HTTP, so I set a SOCKS proxy on XP. But android do not support SOCKS proxy!

Then I found Drony and tried it, but Drony do not work, not SOCKS, even that HTTP proxy cannot be used. In log window I see there is interfaceAddress: /192.168.42.129/24[192.168.42.255], but Drony seems cannot reach 192.168.42.1. A series of "failed to connect to /192.168.42.1(port 8118) after 30000ms" are returned.

I wonder if it is still the gateway problem. But android wifi proxy setting works for HTTP browsing, I wonder why Drony cannot work with it.

Hope you can look into this.
[Android Apps and Games] d15sh:
Hi SandroBSupp,

Just wanted to reiterate - thanks again for this wonderful app!

btw, have you noticed that the 'Start Option > Always Start' does not work for 'Not listed networks'. Earlier the VPN tunnel was setup automatically when I turned on the mobile data connection but now that does not happen. Could you please look into this behavior.
[Android Apps and Games] SandroBSupp:
This is because you upgrade android OS or new version of Drony?
[Android Apps and Games] SandroBSupp:
Hm... It should work. Maybe delete android os proxy settings entirely so that Drony uses just vpn to redirect traffic.
[Android Apps and Games] reaf:
Works on asus zenfone 2 with 3G network. Thankyou Sandro, you are rocks!

If only there is ad free version of Drony...
[Android Apps and Games] d15sh:
I'm currently using Android 7.0 with Drony 1.3.112

To add: it is possible to manually turn on the VPN mode when using the phone carrier's data but the VPN mode does not start automatically.

Also, the VPN mode is able to start automatically for WiFi networks if set.

Thanks again for creating this wonderful app - please keep the regular updates going - Cheers!
[Android Apps and Games] Android321$#:
Android source code

Can you please provide android source code for drony
[Android Apps and Games] SandroBSupp:
Drony is fork of this code. Maybe this will help you out.

https://github.com/SuppSandroB/sandrop/tree/master/projects/SandroProxyPlugin
[Android Apps and Games] lfalonso:
Hi... I'm using drony to connect to a enterprise proxy... before wannacry, I was able to connect to play store, whatsapp and internet browsing, although I had to change user-agent on browser to any desktop browser to get connection. After wannacry (and proxy changes), I can connect to internet through browser, and some apps get successful connections, but whatsapp and google play store cannot. Any idea to try? Even drony ads work. In my desktop PC I can connect to whatsapp and google play store web sites.
[Android Apps and Games] mangusZen:
Hi, I have an insane battery drain when using drony to bypass my corporate firewall, but it's not always happening

it seems random, may be is it ADS related?
[Android Apps and Games] Mangetsu:
Hello and thank you for this great app.

Now, I have a weird question. Is there an app like this for Windows?
[Android Apps and Games] d15sh:
Hi,

I've two observations with Drony - these could possibly be bugs. Could you please review and let me know:

Observation 1: Drony does not automatically turn on after wifi reset.

Steps to reproduce:

1. Ensure that wifi is on and Drony is set to auto start.

2. Turn on phone's wifi. Phone connects to wifi and Drony auto starts

3. Switch off wifi router. Phone's wifi is on but connection is terminated since there is no router (wifi access point) to connect to. Alternatively, walk away from the wifi access point till the connection drops because of the distance. Drony turns off.

4. Turn on wifi router. Phone connects to wifi access point. Drony does not start automatically.

Expected behavior: Drony should start automatically after wifi reset or drop in wifi signal.

Observation 2: Drony does not start automatically with LTE connection

Steps to reproduce:

1. Ensure that under 'Settings for not listed networks', the 'Start option' is set to 'Always start'

2. Turn on phone's LTE connection

3. Phone connects to LTE connection, but Drony does not start automatically

Expected behavior: Drony should start automatically for LTE network

Please let me know if I'm doing something wrong in setting up these desired behaviors.

If these are indeed bugs, please see if these can be fixed in the upcoming release.

Appreciate a lot!
[Android Apps and Games] djtreo:
Great app! But got a problem, I can browse using the stock browser, but if I try to add an account under Settings -> Add Account it just won't work. I can login in google play using the browser. Other apps wont work either
[Android Apps and Games] Gonza_Naveda:
You have to check Cache in wifi options.
[Android Apps and Games] Shelikhoo:
How to get app attempt to connect with proxy applied with VPNService.

I have seen the opensource version of your app sandrop, but it needs root to apply proxy. As for a app set up VPN with VPNService interface, how to read the app related to connection?

I know it is possible to read the port used by connection, but with restriction on /proc, it is not possible to read it without root, making achieving this goal impossible with methods available to me.

Thank you for help.
[Android Apps and Games] Egon31:
Question:

Am using the Samsung Dex dock as a pilot for my workplace and would like to use the enterprise ethernet connection.

It´s behind a proxy and Samsung hasnt provided any settings for this. Would it be possible to implement ethernet proxy in Drony?
[Android Apps and Games] Kosem:
Sandro, I know this is an old post - but I was wondering if this is at all possible with the current version?

I would also like to be able to choose which proxy server to use, based on which which app is requesting.
[Android Apps and Games] SandroBSupp:
You can set script proxy. Will this work for you?

https://en.wikipedia.org/wiki/Proxy_auto-config
[Android Apps and Games] kidfrom77:
How to initiate Drony from adb

Hi,

I'm sorry. I wasn't able to run Drony from the command line. I tried this:

C:\>adb shell am start -a android.intent.action.MAIN -n org.sandroproxy.drony/.gui.MainActivity

Starting: Intent { act=android.intent.action.MAIN cmp=org.sandroproxy.drony/.gui.MainActivity }

Error type 3

Error: Activity class {org.sandroproxy.drony/org.sandroproxy.drony.gui.MainActivity} does not exist.

Could you please assist me?
[Android Apps and Games] SandroBSupp:
There is no gui in package name.
[Android Apps and Games] Kosem:
As I would like to choose a proxy based on which Android app is making the request -

Is there any JS variable accessible from within the proxy script, which contains the name/ID of the app requesting access? If so, that would work great.
[Android Apps and Games] kidfrom77:
Not seeing Android MediaPlayer requests in Charles

Thank you for your prompt response.

Another doubt. It seems that Android MediaPlayer is not passing through the proxy no matter what. Do you know what should I do?

Regards,
[Android Apps and Games] SandroBSupp:
Well, no. Not as input parameter to script. I could make some additional javascript functions that could provide that.
[Android Apps and Games] SandroBSupp:
Are you using vpn mode in Drony? Maybe also restart MediaPlayer so that tries to reconnect through Drony.
[Android Apps and Games] Kosem:
Awesome.

In case the current code is available anywhere, I'd be happy to try and have a go at it myself.
[Android Apps and Games] SandroBSupp:
Sorry, Drony is not open source as is SandroProxy.
[Android Apps and Games] Kosem:
Alright; if you do happen to get a chance to add those variables to be used by the JS proxy configuration, please let us know.

Thanks!
[Android Apps and Games] SandroBSupp:
Will do. New version of Drony is cooming soon.
[Android Apps and Games] wsminsandeeppa:
Proxy not working for applications

Hi,

I tried this and getting unable to listen error. I have set up the proxy settings under network connections and I am able to browse internet using the built in browser.

I have proxy address port number domain username and password setup correctly still getting problems. On same network when an iphone user connects it works fine for applications as well.

I don't understand why we don't have a user authentciation in android itself. Any help in getting this resolved would be good.

I am using MMX A110 with Stock ROM ON ICS.
[Android Apps and Games] SandroBSupp:
Unable to listen means that some other app is already listening on port 8020. Maybe SandroProxy. Stop it or uninstall it.

Or some other proxy app could also be the reason. Stop all or even restart phone and try again.
[Android Apps and Games] JugglerLKR:
Very good app with root support can do miracles!

Please specify which types of authentication when connect to other proxy it supports:

Basic

NTLM (SMB LM, v1 and v2)

Negotiate

Digest - the one i'm interested!
[Android Apps and Games] SandroBSupp:
It's supports all. It should also work with Digest. Let me know if you will have any problems.
[Android Apps and Games] sjallipa:
thanks works on KitKat too

Thank you! so much, just put this on my Nexus 5 and it is a miracle!

Just to let you know Talkatone doesn't work, but it could be my network administrator blocking it.
[Android Apps and Games] SandroBSupp:
Miracle? You are probably still under Nexus 5 spell ;)

Talkatone probably will not work because do not respect android os proxy settings.

But maybe it does. Not sure. Ports to check with administrators:

My Firewall is blocking voice traffic. What should I do?

Talkatone needs the following ports open for outgoing traffic:

TCP ports: 5222 (or 80, but we recommend both, otherwise battery drain may increase) to talk.google.com. Note that multiple IPs may respond to this DNS name – they are subject to change by Google and are using Geo DNS – i.e. will resolve to “closest” set of IPs. This is the main connection and is used for IM and call signaling.

For media we use ICE (STUN+Relay) firewall traversal. Usually corporate routers would not allow STUN traversal anyway (they are usually double-NAT). Therefore, we need to be able to establish “outbound” connection to UDP port 19295 (relay servers) and ideally 19302 (STUN). Please note that IPs for those outbound ports will vary and may even come from different networks. So we recommend allowing establishing UDP connection to *:19295 (and this will allow server to send “responses” on this “connection”).
[Android Apps and Games] tuftik:
Hello, SandroBSupp.

Firstly, thank you for the work on the app - it is really cool.

And i have a small silly question - i need use the proxy only when i'm on one particular site. Is it possible do this with Drony or maybe SandroProxy? I don't need use the proxy server for all programs and for all device. But it's necessary use android os proxy for correct work of the website. And yes - i don't have root.

p.s. sorry for my terrible english ..)
[Android Apps and Games] SandroBSupp:
It can be done.

You can use pac/wpad script and there you can write logic in javascript how Drony should act on incoming requests.

http://en.wikipedia.org/wiki/Proxy_auto-config

Send me mail if you need more help to set it up.
[Android Apps and Games] yuluyi:
shExpMatch always return false

tested using h t t p://y o.u k u.im/proxy.pac and found shExpMatch always return false. Sorry new user cant post url. Please escape the spaces in the url
[Android Apps and Games] SandroBSupp:
Will look at it. Can you please give me more info how you test it?