Android Forum » HTC Android Devices » Specifying proxy settings on my Desire

Specifying proxy settings on my Desire

Specifying proxy settings on my Desire
created on Sep 1, 2010 12:47:19 PM
Hi guys,
this happens to be my first post since joining androidpit. :grin:
I need some help. How can one specify proxy settings for a web browser on the Desire. I've been unable to surf the web at my office cos we have specific proxy settings that must be specified before one can surf the web.

Looking forward to getting some help.

Thanks.
Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 1, 2010 1:47:18 PM
I think here is what you are looking for: Settings - wireless & networks - Proxy Settings.

Not in the browser. In the "stock-settings" (is it the right english word???)

Hope I could help.

Frank

-----
"Irgendwann, möglicherweise aber auch nie, werde ich dich bitten, mir eine kleine Gefälligkeit zu erweisen." (Don Corleone)

Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 1, 2010 2:06:11 PM
Thanks Frank for the response.

I was able to navigate to the Wireless & setttings, i however did not see "Proxy Setting" option. Kindly take note, my HTC Desire is not rooted.

I also do not understand what the "stock settings" are.

Thanks.
Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 1, 2010 2:18:47 PM
Peter O.
Thanks Frank for the response.

I was able to navigate to the Wireless & setttings, i however did not see "Proxy Setting" option. Kindly take note, my HTC Desire is not rooted.

I also do not understand what the "stock settings" are.

Thanks.

:) Sorry, my English is not the best. With "stock settings" I ment the Android settings. Not the browser-settings. Mh... I hoped the Proxy-settings in "wireless and ..." are not from my custom rom but from standard-android. It's the last point in the list. Additionaly I looked for an app but didn't find anyone which can switch the proxy. :(

Frank

-----
"Irgendwann, möglicherweise aber auch nie, werde ich dich bitten, mir eine kleine Gefälligkeit zu erweisen." (Don Corleone)

Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 1, 2010 3:13:06 PM
@ Frank

Thanks for the effort you put in. I'll keep searching for other ways by which i can get to specify proxy settings.

Regards.
Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 1, 2010 10:58:07 PM — modified on Sep 2, 2010 3:50:21 AM
I found this post on http://code.google.com/p/android/

Maybe you can try this:

I haven't tried it myself (don't have need for it personally)
__________________________________________________________________________________________________________

i have successfully set proxy using fennec, a browser by Mozilla that is now in alpha. This is the link to the blog where I got the solution:
http://gszyszka.blogspot.com/2010/05/how-to-browse-internet-from-behind.html

This is the solution:
So this is how you can configure your Internet:

1. First, download and install Fennec on your device. Go to https://wiki.mozilla.org/Mobile/Platforms/Android#Download scan QR code or go to http://bit.ly/fennecapk to download nightly build. The bad news is that it will use a lot of space after installation.
2. Run Fennec, and in address bar type: about:config. This will take you to the advanced configuration panel.
3. Now you need to find proxy entries, to simplify that you can filter it out by typing proxy in the field below address bar.
4. Modify network.proxy.http and network.proxy.http_port to your proxy server and port.
5. You can also modify network.proxy.ssl and network.proxy.ssl to be able to access https addresses.
6. Set network.proxy.type value to 1.
7. That is it, you can now open your favorite webpage.

To make this change permanent you will need to modify prefs.js file which is located in /data/data/org.mozilla.fennec/mozilla/your_profile_id/prefs.js, where your_profile_id in my case is something like gp6trz9b.default. I'm using root explorer to modify this file. The lines you need to add:

user_pref("network.proxy.type", 1);
user_pref("network.proxy.http", "your.proxy.ip");
user_pref("network.proxy.http_port", "your.proxy.port");
user_pref("network.proxy.ssl", "your.proxy.ip");
user_pref("network.proxy.ssl_port", "your.proxy.port");
user_pref("network.proxy.share_proxy_settings", true);

Save and exit, restart browser and proxy should work now. The last key: share_proxy_settings should make http proxy a default for other protocols, however this doesn't seem to work for me. That's why ssl kyes are added.

-----
Download AndroidPIT's AppCenter! AndroidPIT FAQ – Frequently Asked Questions and Answers

Reply with quote Reply Link +1     (1 vote)
RE: Specifying proxy settings on my Desire
created on Sep 2, 2010 5:57:34 PM
Thanks Frank. I've gone through the article. I dont think I'm gonna go that far, cos i'm still new to the android OS. I hope google gets to adress this issue soon.
Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Sep 2, 2010 9:22:54 PM (via AndroidPIT app) — modified on Sep 2, 2010 9:25:47 PM
Peter.. FYI.. I (justJay) researched your problem and posted that last post with the work-around.

-----
Download AndroidPIT's AppCenter! AndroidPIT FAQ – Frequently Asked Questions and Answers

Reply with quote Reply Link ±0     (0 votes)
RE: Specifying proxy settings on my Desire
created on Oct 11, 2010 11:16:17 AM
justJay


This is the solution:
So this is how you can configure your Internet:

1. First, download and install Fennec on your device.
[...]

Thank you!
Much appreciated - I've read a lot of negativity about the lack of Wifi proxy for Android 2.x but no solution, and I knew there had to be a way to do this using web browser.

about:config isn't that hard to edit without the need to use root explorer - you can do it from your Android.

If you browse to it in Firefox Fennec on your Android it will load and give you a form with fields to add new integers, booleans and strings. You can also search for existing settings at the top.

This is where I'd recommend installing Firefox on your work (or school) machine, and browsing to about:config where you can see the pairs of settings and copy them out.

Add in the ones that you included in your post: (// comments afterwards are mine, don't add these!

network.proxy.type 1 // integer
network.proxy.http your.proxy.url.or.ip // string
network.proxy.http_port 8080 // integer
network.proxy.ssl your.proxy.url.or.ip // string
network.proxy.ssl_port 8080 // integer
network.proxy.share_proxy_settings true // boolean

You may or may not have an autoconfig url - just put in whatever seems to be in there from work and you'll be ready to go.
Reply with quote Reply Link ±0     (0 votes)