You are here

Not Autodetecting Proxy Settings

16 posts / 0 new
Last post
Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
Not Autodetecting Proxy Settings

I've got Portable Firefox (2.0 rc3, to be exact) running on my USB thumb drive. It works fine at my house, but at school, it can't connect to the internet.

My school sysadmin has a proxy server of some sort setup (I'm not sure of the exact details - after all, as a student, I don't have access to the server). While Firefox is set to "Direct Connection to the Internet" in the network settings, I'm not able to access the internet with it (obviously, because of the proxy server).

"Auto-Detect Proxy Settings for this Network" doesn't seem to work either, for some reason. It's rather hard to troubleshoot, seeing as (as a student), I have very limited access to system settings. Without having access to the IE connection settings dialog, and no access to the system registry either, any way I can get Firefox to connect to the internet correctly?

I considered writing a simple app that would just go pull the IE proxy settings out of the registry and write them to a file, so I could configure the proxy server manually, but it seems like there should be a better way... But, if you guys don't know of any other way to get this working, anyone know of a good Java library for reading the Windows registry ? Blum

John T. Haller
John T. Haller's picture
Online
Last seen: 57 min 59 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Support page

Sometimes, the impossible can become possible, if you're awesome!

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
Thanks !

Can't know for sure without testing this out on my school's PC's, but this looks like it is *exactly* what I need to fix my problem. Smile

Thanks ! Biggrin

youknowme
Offline
Last seen: 17 years 4 months ago
Joined: 2006-07-24 18:35
Proxyget

The proxyget utility doesn't get the "automatic proxy configuration" script info.
Example: http://webserver.com/proxy.pac

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
It does get IE's proxy

It does get IE's proxy configuration, though, right ? Seems like the logical way to go about getting the proxy info from a system...

That *should* be all the info I need, seeing as how IE can connect up just fine through the proxy...

youknowme
Offline
Last seen: 17 years 4 months ago
Joined: 2006-07-24 18:35
A lot more companies use pac

A lot more companies use pac files nowadays. This enables them to use multiple proxy servers, and other features. Therefore, they use a configuration script (pac file). This is put in the "Automatic Configuration" section in IE. The proxyget tool does not pick up where the location of that script is. So, the tool could be misleading.

youknowme
Offline
Last seen: 17 years 4 months ago
Joined: 2006-07-24 18:35
It does get IE's proxy

It does get IE's proxy configuration, though, right ? - YES, this is in a different section of IE than the automatic configuration script (pac file). If you run the proxyget tool and it reports back the proxy info. then you could be fine. If you run the proxyget tool and get nothing back, but also can't access the internet, then it is possible they use a pac file.

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
Well that's apparently how

Well that's apparently how it's setup, then. The utility said no proxy was enabled on one of the school's machines I tested it on, however Firefox still can't establish a direct connection to the internet.

The question now is, how can I get access to said PAC file ?

youknowme
Offline
Last seen: 17 years 4 months ago
Joined: 2006-07-24 18:35
If possible...

open up IE and go to tools/internet options/connections tab/lan settings

Copy the url from the "use automatic configuration script" field and paste it into firefox (tools/options/advanced/network).

It's also possible to paste the url in the address field of the browser to save the pac file and use it locally, but this is for the more experienced.

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
Don't have access...

The sysadmin at my school (who is rather infamous among me and my friends... he is known as "The Matt" - the devious little bastard that disabled right-clicking...) restricted access to the Internet Options dialog.

Is there a registry key somewhere that tells where said file is located, perhaps? He didn't restrict access to apps reading from the registry, so I could just whip up a simple app to read that key and write it to a file - or even copy the file it contains to my USB drive for analysis...

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 8 months ago
Joined: 2006-01-06 21:27
.

the devious little bastard that disabled right-clicking
Damn, that happened to us too Wink
Mind you, they are sort of like a corrupt government. In public, they say we aren't supposed to play games, but when we are in the labs, they play as well Biggrin
----
R McCue
Cube Games
People who didn't need people needed people around to know that they were
the kind of people who didn't need people.
(Maskerade)

"If you're not part of the solution, you're part of the precipitate."

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
So...

So, anyone have any idea how I can go about finding this PAC file ?

youknowme
Offline
Last seen: 17 years 4 months ago
Joined: 2006-07-24 18:35
Search the registry for

Search the registry for "AutoConfigURL"

If that doesn't do it then keep searching thru the registry for other IE settings.
or
Simply ask IT what it is.

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
LOL ask IT

That was the first thing I tried... But apparently, me having access to their proxy server would be bad. Not like they *force me to use it* or anything. Biggrin

mjcarman
Offline
Last seen: 13 years 5 months ago
Joined: 2006-07-27 17:05
ProxyEnable probably set to 0

ProxyGet tells me that there's no proxy on my work PC as well, even though I know that there is one. I do have access to the registry so between that and the ProxyGet source code I think I know what's happening. ProxyGet first checks the ProxyEnable key. If it's zero PG reports "no proxy" and stops. For some reason my system with an autoconfig proxy has ProxyEnable set to zero even though it has values in AutoConfigProxy and ProxyServer. I've been thinking about hacking the source of ProxyGet to just report the values of those three keys regardless but haven't gotten around to it yet. (Mostly because I've never messed around with NSIS.)

Edit: Aha! IE's LAN settings even say "Automatic configuration may override manual settings." So it's entirely possible to have a (automatic) proxy even thought ProxyEnable is zero.

Doomhammer
Offline
Last seen: 17 years 7 months ago
Joined: 2006-10-21 18:27
It's certainly possible...

I'll take a look at the source code, and maybe see what happens if I have it always assume ProxyEnable is 1.

Topic locked