New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
biplabbose
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 9
Join Date: Sep 2010
Question [Q] Problem with Proxy Pac, in rooted Phone

To access the Internet using Wifi I need to go through the proxy server of our organization. Usually in a Windows Desktop we configure to get the DNS server automatically and use a proxy.pac (some thing like: http: //SSS.SSS.SS.SSS/proxy.pac).

I have rooted my Xperia X10 mini and tried anProxy and TransProxy, but failed to go through the proxy server.

Is there any way out or work around to access the Internet through our proxy server?

Thanks in advance!
 
dtothesquare
Old
#2  
Member
Thanks Meter 10
Posts: 58
Join Date: Aug 2010
I know this is old, but this is an ongoing problem and I figured out how to use a .pac proxy file! After reading about proxy's and what .pac files are, I stumbled upon a little hint and after a little tinkering I was able to use my work's wifi that uses an auto-config .pac file and my phone and tablet has full internet access with browser, apps etc including Netflix for example.

Here are the steps you need:
1) Your phone has to be rooted to take advantage of the proxy apps on the market, I personally use ProxyDroid, which is free and has a feature to bind certain proxy profiles to automatically turn on when a certain wifi network is connected.

2) Usually there is an option that gives you an http proxy pac file to manually input to your browsers or what not, so whatever the link is, put it an active internet browser to download the pac file (an example of the url with the pac file would be something like http://internet.xxxxx.com/proxy.pac)

3) Where ever you download the pac file, open it with notepad or wordpad and this will reveal all the proxy info you need in order to access the proxy enable wifi. What the ProxyDroid app needs from the PAC file is the Host url and Port number. When you open a PAC file in notepad, you'll see something like this near the top along with a bunch of other things under it:

"Cisco Remote Envelope Service
if (dstHost=="internet.e-mail") {
return "PROXY internet-x-x.xxxxxx.com:9090""

- So in "Host" under Proxy Settings in the ProxyDroid app you would input: internet-x-x.xxxx.com
- For the "Port" you would put input: 9090

4) After inputting those 2 pieces of info into the ProxyDroid app, turn the wifi on for your Android Device then enable to ProxyDroid app, you should able to connect to the proxy enabled wifi!

*Some notes for the ProxyDroid app.
- It allows for Authentication, but since my work wifi does not use that, I'm not sure how it would work
- For Proxy type, I set it as an HTTP
- I binded the specific proxy profile to my work wifi so it would ProxyDroid would automatically enable when work wifi was detected

Hope this bit of info helps other that have Android devices and were unable to use a proxy enable wifi to finally access them. Hopefully in the future, Android will make using proxy and pac files a lot easier like how it's done on the ipad where they allow you to manually set up proxy settings by having the device download the PAC file.

This works on both a rooted AT&T HTC Inspire and a HP Touchpad running CM7 Alpha
 
Moronig
Old
#3  
Senior Member
Thanks Meter 139
Posts: 289
Join Date: Dec 2010
Location: Curitiba

 
DONATE TO ME
This looks like a resolved issue, but if anyone else is reading this, there is an easier way. Check out Autoproxy on the market. You can add a new proxy, put in the address to the proxy.pac file, and it will connect to the current proxy.
That's also good if you're on a network where they keep changing the proxy (like the place I work).
Find my apps: AutoProxy
Tags
pac, proxy, rooted, wifi, x10