Hot answers tagged

27

On my Android 7 and 8 devices: adb shell settings put global http_proxy <address>:<port> Seems the setting is lost at reboot, however.


11

I have a Galaxy S4 and use ConnectBot to connect to my SSH server and setup a port forward via the client to port 8080. Then setup Firefox to use the SOCKS proxy by just going to About:Config and entering the following: network.proxy.socks: 127.0.0.1 network.proxy.socks_port: 8080 (or whatever port you chose to forward in ConnectBot) network.proxy....


10

The wifi proxy settings are still configured under the advanced options for your wifi network. The reason you can't find them is just bad Android UX. They're in a scrollable area that doesn't look scrollable (it looks like it just says 'metered'). If you try scrolling down in the wifi settings window you'll see it immediately.


8

The other answers are way out of date. BlueStacks installations now includes a command-line utility HD-ConfigHttpProxy.exe to setup a proxy connection. I can't find documentation for this utility anywhere but it's pretty basic: Using BlueStacks with a Proxy Server Open BlueStacks. (It has to be open before running the utiity) Open a Windows command prompt....


8

Your http://xxx.com/proxy.pac is not a proxy server, it is the address to a proxy automatic configuration (PAC) file. A PAC file contains a Javascript function that determines which proxy address to use and/or whether you're allowed to go direct when connecting to a particular URL. ProxyDroid (requires root) claims to support proxy configuration using PAC ...


8

If you're just interested in setting a proxy up over your Wifi, you can do that with Servers Ultimate quite easily, but I don't know why anyone would really want to do that. A much more useful option is to use mobile data, but as @Kevin said you're going to hit a lot of headaches, namely at the ISP level (Verizon, AT&T, etc). Chances are you won't get ...


7

Servers Ultimate is an advanced app for turning your phone into a server. By the same developer, Proxy Server offers a more basic and solely "Proxy Server based" approach. As stated on its description: Run your own Proxy Server on your device! The app can handle HTTP and HTTPS protocols and GET/POST requests. You can even set the app to forward all ...


6

This solution worked for me. Just enter the following command in a terminal (change PROXYIP:PROXYPORT ) iptables -t nat -A OUTPUT -o eth0 -p tcp --dport 80 -j DNAT --to PROXYIP:PROXYPORT Source: https://groups.google.com/forum/#!topic/android-x86/XfIRyHQ5nmk I had too tried all your commands without success. I was stuck behind a proxy trying to setup ...


5

For GSM devices, as far as I know, the proxy settings for your mobile data connection are defined in the Access Point Name (APN). Go to Settings > Wireless and Networks > More > Mobile Networks > Access Point Names > [Your data APN] (your device's menu may differ slightly). Check the Proxy field - it's possible this got modified somehow. Might ...


5

If you have cleared your Google Service Framework data to receive the update, it will change your device ID that Google uses to recognise your device. This also affects the tokens used by some apps (i.e. Google Now, Google Search, Chrome) and they won't connect to the Google servers properly and refuse to work for a while (this was like 24~48 hours for me, ...


5

on master device: Configure wifi proxy manually adb pull /data/misc/wifi/ipconfig.txt on second device: adb shell svc wifi disable adb push ipconfig.txt /data/misc/wifi/ipconfig.txt adb shell svc wifi enable


4

There are several proxy apps available to accomplish something like that. Though most of them require root access to the device, not all do (I have not tested any of them, so I cannot tell in detail). However, a different approach might be checking into VPN apps, as that's pretty much what you targeting: a Virtual Private Network, where your server acts as ...


4

It seems to be a known "feature" if you use Kaspersky Internet Security: http://forum.kaspersky.com/index.php?s=8ffe1c0b8684d5bd3d1353f0d074f528&showtopic=260035 However, as you can see in the link above, it comes with a few issues. Disabling the 'web protection' component seems to do the trick.


4

Just disable captive portal detection. In the terminal, or in adb shell, issue the command settings put global captive_portal_detection_enabled 0 and reboot.


4

The link you have provided is not setting up SOCKS but a transparent proxy i.e. it takes TCP/UDP traffic and SOCKSify it before sending through shadowsocks tunnel. But you need to make your traffic SOCKS-aware before directing towards SOCKS proxy. Either configure individual apps (which have built-in support for SOCKS) or enforce proxy system-wide ...


3

As stated by Lie Ryan's answer, the proxy.pac file is a javascript file. In the Proxy Settings on your Android, you can only enter the address, port number, and sometimes a username and password. What you can do is either ask your SysAdmin for the Proxy Server and Port Number, or just look at the file yourself. On a system that's already on the network, ...


3

require root for some reason It requires root because the global proxy setting is a secure system settings; on nonrooted devices, only system apps (like the Settings app) can modify secure system settings. Imagine if just any app can modify your global proxy setting, you can inadvertantly be redirecting all your internet traffics to some shady server ...


3

Your question is related to understanding of OSI model. Proxies use http/https or socks protocol, I assume you are talking about http which is an Application Layer (L7) protocol in OSI model. When an application generates http message, it's handed over to lower layer. In case of https, message is encrypted by SSL/TLS which are L6 protocols. At L4 the message ...


3

This question is a near duplicate of questions like this and this, and closely related to this and this. In fact it can be better explained by a developer, but since it keeps on appearing again and again with slightly different situations, I'll try to explain what I know with some unnecessary details to make the picture clear from a broader perspective. In ...


2

Based on my experience, when using a virtual router on a PC with an internet connection only through proxy, in order for your Android device to connect to the same proxy your pc is using, you have to configure your WiFi connection proxy settings on your Android device to use the same proxy settings on your PC. Afterwards, you can succesfully connect using ...


2

did you specify the proxy configuration when you were setting up the network, you need to enter the proxy details in the network configuration try Google nexus 4 android network configuration website its for nexus 4, but hope its similar to any other android device. http://support.google.com/android/bin/answer.py?answer=1649770. get an english one or ...


2

Did you switch from "Mobile data" to "WLAN" (also "Wifi" or "Wi-Fi" on SAMSUNG) last time for surfing in internet? If yes, then try this! Sometimes when you enable "WLAN" before disabling "Mobile data" (top line, near the battery-charge-state or the current-date/time) the proxy settings for GSM will stay and be used for you WLAN! All you need to do is: ...


2

In Chrome Settings there is an Advanced option Reduce Data Usage. It causes Chrome to connect to Google servers to deliver compressed pages. When this option is ON my proxy settings are ignored. When this option is OFF my proxy settings work.


2

Maybe I am not understanding correctly, but you could set your phone as a Mobile Hotspot and configure a wireless router as a bridge between your existing network and the hotspot. In this scenario, all devices on your network would be using the wifi signal of the router and only the router would need to be configured to reconnect to the hotspot.


2

Its better to block ads on android through the hosts file rather than via a proxy but you need root for that. If you have root access the you can use Adaway along with an updated hosts file from XDA for a stricter ad blocking.( You can add the source location of the hosts file in adaway) http://adblock.mahakala.is If you don't have root access then you ...


2

There's no apparent "technical" reason for that lack. I suspect it'd be something related to the "Android Program Policy" (or whatever else it's called). In my opinion it looks like an intentional choice as the system-level proxy you can normally configure could be leaking information for some reason or bug. Anyway, we can configure the ...


2

I found you can't edit proxy of an existing WiFi profile anymore, I dunno why they removed the feature. But you can just remove your saved Wifi profile and add a new, then you will easily find proxy options under advanced drop down.


2

I recently answered in detail to question: How to set Wi-Fi HTTPS proxy, not HTTP, via adb shell?, trying to clear some confusions many of us (including me) have regarding how proxy works. DOES YOUR APP GENERATE HTTP TRAFFIC? Proxy usually means http proxy, but not all traffic generated by every app is http - a Layer 7 protocol in OSI model. Email clients, ...


2

Android does have HTTP(S) proxy support built-in that can be set through Settings UI and/or command line, but it isn't global, so regarded by proxy-aware apps only. However there is no built-in support for SOCKS. So if an app - unlike web browsers - cannot be configured to use SOCKS proxy, there is no way to set SOCKS5 proxy from adb shell or terminal ...


2

The cause I was working with Mobily Security Framework (https://github.com/MobSF/Mobile-Security-Framework-MobSF). It is a set of tools to analyse mobile apps. In the option of dynamic analysis, my cellphone was connected to the PC through USB. The tool works with genymotion emulators (https://www.genymotion.com/fun-zone/) but if the device is connected, ...


Only top voted, non community-wiki answers of a minimum length are eligible