Detecting proxy settings

According to the unofficial web start faq (http://lopica.sourceforge.net/faq.html)
a web start program can find out the proxy settings by doing a ....
System.getProperty("proxyHost")
System.getProperty("proxyPort")
But this doesn't seem to work for me. I set my proxy under firefox, and run under webstart via http protocol, and these come up null. I also tried getting http.proxyHost to no avail. I also tried the reset proxy settings in the web start console (whatever that is supposed to do), which didn't seem to do anything either.
Does this work for anybody else?

These settings were used by Java 1.2 (and maybe 1.3), and superceeded by System properties httpProxyPort and httpProxyHost. These were themselves superceeded in Java 1.5 with the addition of the java.net.ProxySelector class.
Now when running in Java version 1.5+, webstart and plugin will call ProxySelector.setDefault(), which will set up a proxy selector that will dynamically set the proxy when a URLConnection is made. This allows the full implementation of proxy pac files, which may determine a differant proxy depending on the host being accessed.
If you are running in Java Web Start 1.5.0 or later you can call ProxySelector.getDefault(), and use the returned proxy selector to find the proxy using the select() method with your URI.
/Andy

Similar Messages

  • Where can I read the proxy settings Firefox chose, when configured to use "Auto-detect proxy settings for this network"?

    I would like to set my system network proxy settings to those, Firefox chose. Firefox is configured to use "Auto-detect proxy settings for this network" and this works fine. How can I read out the settings Firefox chose, so I can adapt these system?

    Hello Richard,
    Download MozBackup and make a backup of your bookmarks and passwords. Uninstall firefox and remove ALL folders with the name "Firefox".
    Install Firefox and restore your bookmarks and passwords. Now you should have a fresh install so you have to make all settings again.

  • Why Does It Take So Long To Detect Proxy Settings?

    Windows 7 Ultimate x64 with all patches
    Internet Explorer 10 with all patches
    The first time I start Internet Explorer after booting it takes a very long time (>30 seconds) to detect proxy settings.  There is nothing else running on this machine.  I have this problem if IE is the first thing I open after booting.
    Why does it take so long and how can I speed this up?
    http://www.saberman.com

    Hi,
    Was your issue resolved?
    No
    If yes, we will archive this thread temporarily.
    No
    If no, please reply and tell us the current situation.
    No
    If you have any other question, feel free to contact us. We will try our best to help you.
    The thread was marked as answered eventhough it wasnt'.  What more can I say.
    If you have any feedback on our support, please click
    here
    Here goes to a dead letter mailbox.
    Karen Hu
    TechNet Community Support
    http://www.saberman.com

  • How to set the "Auto detect proxy settings on N82"...

    Hi folks,
    I have a WLAN at the university which is secured of course and I need to under go a web authentication in order to connect to the network and i have done till then on my N82 and later i cannot browse.
    To browse from the fireforx or explorer i need to set the settings to "Auto detect proxt settings" and IP auto... from Laptop.
    I am not able to find such  option on mobile ,,  i need to give the proxy server name which is unknown to any one  and mostly the university IT guys will not say to us
    So can you suggest me some thing to overcome this problem .
    Regards,
    Surya 

    Hi
    there's a location services checkbox in Safari-Preferences-Security
    and one in System Preferences-Security-General
    However, many websites look at the country location of the isp connection you're using, which is a different matter, & not in control of the user. Some sites allow choosing a personal language/location setting, stored in a cookie.

  • Detect proxy settings and ports

    Hello forum, I have a project to find out which servers or applications/services are going through ISA 2006 proxy. The servers comprise of WIndows 2003 and 2008 R2 boxes. I tried proxcfg.exe (pre 2008) and netsh winhttp show proxy (post 2008) but I get following
    results. I know that these boxes do use proxy servers because they show up when I query ISA logs.
    C:\proxycfg
    Microsoft (R) WinHTTP Default Proxy Configuration Tool
    Copyright (c) Microsoft Corporation. All rights reserved.
    Current WinHTTP proxy settings under:
      HKEY_LOCAL_MACHINE\
        SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
          WinHttpSettings :
         Direct access (no proxy server).
    C:\netsh winhttp show proxy
    Current WinHTTP proxy settings:
        Direct access (no proxy server).
    I have also looked at registry keys HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
    Settings but found nothing of relevance. Checked IE settings and found no proxy configuration. How can I check which application or service is using proxy and on which port? Thanks again.

    Thanks Quan, a little background, ISA version is 2004 and the traffic logging is done on a different box with SQL 2005. Which means that all server, service/application or user generated traffic first hits ISA boxes and data is logged in SQL server. Now, I
    ran a query on SQL boxes to see if there are servers or applications still accessing old ISA servers and found that many still are using that route. The query I ran is 
    select clientusername,Max(logtime)
    from webproxylog
    where logtime > '2014-03-04'
    Group by Clientusername
    Outcome is a list of servers and users accessing old ISA servers, please see below
    clientusername
    TimeStamp
    Domain\USER1
    12/03/2014 9:42
    Domain\USER2
    10/03/2014 8:29
    Domain\SERVER1$
    12/03/2014 6:33
    Domain\SERVER2$
    7/03/2014 23:05
    Domain\SERVER3$
    7/03/2014 23:09
    Domain\SERVER4$
    7/03/2014 22:18
    Domain\SERVER10$
    12/03/2014 0:15
    Domain\SERVER12$
    6/03/2014 13:00
    Domain\SERVER21$
    9/03/2014 15:05
    Domain\USER46$
    6/03/2014 7:17
    Domain\SERVER22$
    5/03/2014 17:25
    Domain\SERVER73$
    12/03/2014 9:11
    Domain\SERVER14$
    5/03/2014 17:31
    So I logged on to few servers to check proxy settings. The server list comprise of Windows 2003 and 2008 R2 boxes. On a handful of servers I found proxy, under IE settings but on others I didn't find any proxy settings (under IE). Then I tried proxcfg.exe (pre
    2008) and netsh winhttp show proxy (post 2008) but I got following results, please see below. 
    C:\proxycfg
    Microsoft (R) WinHTTP Default Proxy Configuration Tool
    Copyright (c) Microsoft Corporation. All rights reserved.
    Current WinHTTP proxy settings under:
      HKEY_LOCAL_MACHINE\
        SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
          WinHttpSettings :
         Direct access (no proxy server).
    C:\netsh winhttp show proxy
    Current WinHTTP proxy settings:
        Direct access (no proxy server).
    I have also looked at registry keys HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings but found nothing of relevance. Checked IE settings and found no proxy configuration. Then why are my servers using old proxy servers?

  • How do "Auto-detect proxy settings for this network" and "Use system proxy settings" work behind the scenes?

    How can I see what the proxy firefox actually uses when I check either of these two options?
    Does it take it from Internet Explorer?
    Are they stored somewhere in the registry?

    Hi conectionist,
    This is taken if there is a proxy set up in your network settings on your OS. If you would like to test there may be an add on:
    *[https://addons.mozilla.org/en-US/firefox/addon/smart-ip-connection-info/?src=search]
    Please feel free to search to find a better one if necessary.

  • Auto-detect proxy settings for this network Not work with DHCP WPAD

    My Network browsing Internet Through TMG The DHCP Configure To Deploy WPAD with configuration it's work good with IE 8,9 and Google Chrome, but don't work with firefox, I Tired search for the Solution for this problem but all Solution To fail.
    the big problem is there are more PCs and laptops work with FireFox.And The laptops will be able to going out to another network with end users

    Hi conectionist,
    This is taken if there is a proxy set up in your network settings on your OS. If you would like to test there may be an add on:
    *[https://addons.mozilla.org/en-US/firefox/addon/smart-ip-connection-info/?src=search]
    Please feel free to search to find a better one if necessary.

  • Video times out on hosted website with Auto-detect proxy settings enabled

    When going to our companies website our EMBEDDED youtube videos on the site fail to load while on our physical network (using proxy Auto-detect). The video works fine while on the wireless, or using Internet Explorer (w/autodetect).
    However, if you manually enter the youtube links in the browser, the video works fine.
    When the Firefox proxy is set to manual - the site and video works just fine.
    When the IE proxy is set to autodetect - the video works just fine.
    I used wireshark to figure out what is going on. The when clicking the video it tries to go straight out (not using the proxy) when it should actually use the proxy.
    Our company cannot view our videos on our own network using this browser - PLEASE fix auto-detect bug.
    MORE INFO:
    - We have a Dansguardian/Squid proxy setup - non-transparent.
    - We use WPAD file
    Please let me know how we can resolve this issue without coding our videos to pop out into a new window (ruins the look and feel of the site).
    -Kyle

    Can you try with a modern version of Firefox? like 31? [[Update Firefox to the latest version]]

  • Firefox not detecting/using system proxy settings

    I use a command line script to change among various proxies (and none). Firefox does not recognize when a proxy is turned on or fails to connect to it (no error messages), while other browsers and applications do just fine.
    I have tried selecting "Use system proxy settings" and "Auto-detect proxy settings for this network."
    My script contains these lines to activate a proxy
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v DefaultConnectionSettings /t REG_BINARY /d 46000000b10000000200000014000000736f636b733d3132372e302e302e313a313131311c0000002a2e6c6f63616c3b3139322e3136382e31312e2a3b3c6c6f63616c3e000000000000000000000000000000000000000000000000000000000000000000000000 /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d 1 /f
    The first line enables the proxy to take effect without entering inetcpl.cpl. Again, this works for any application other than Firefox.
    The proxies are all through ssh with port forwarding.
    I do not want to manually configure a proxy in Firefox, because I do not want to change this every time I need to change proxies or turn them off. This is not an acceptable solution.
    I am on Windows 8.1 64bit, with Firefox version 35.0
    Any idea what might be going on here?

    Thank you for the response, but as above, the "Auto-detect proxy settings for this network." setting does not work.

  • My Firefox always changes Network settings to 'Use Manual Proxy' after every PC restart, even if I change the option to No Proxy/Auto detect proxy.

    My Firefox 4 always changes the Network settings to '''Manual Proxy Configuration''' after every PC restart. I have to always go to connections and change this setting to '''No Proxy''' or '''Auto Detect Proxy Settings for this network'''.
    I also tried to revert the values back to default values by using about:config and changing modified values back to default. But it still doesn't works out.
    Kindly help.
    Thank you.

    I had this too, I tried running Firefox in safe mode (no add ons) - that didn't make any difference. I could save other preferences, just not the proxy setting. I'm 99.99% sure I didn't have a virus or other malware. This was only affecting Firefox, no other browser I has installed.
    In the end I created a new profile - http://support.mozilla.com/en-US/kb/Managing%20profiles - that seems to have 'fixed' it for me - the new profile doesn't have the problem, but the old one still does.
    Windows 7, Firefox 4.01.
    Cheers

  • Proxy settings causing unwanted use of SOCKS

    I have a Java app that, among other things, has to connect to a web server and get a response. Pretty simple stuff. I needed to be able to support proxy servers out of the box. So I looked around and discovered the ProxySelector and the java.net.useSystemProxies=true property. I read that it would auto-magically detect proxy settings for the platform. I added the code to detect and use the proxy if present and it worked without a hitch in testing.
    I was contacted by a customer stating that they weren't able to communicate to the internet. I looked at my logs and saw that I was detecting their HTTP proxy server and port correctly. I spoke to their proxy server administrator and confirmed everything. Then, I saw this in the logs:
    java.net.SocketException: Malformed reply from SOCKS server
         at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)They were not using a SOCKS proxy, only a standard HTTP proxy. The customer's IE could connect to the site without issue. I then asked them to describe their IE connection settings to me. They said they simply checked "Use a proxy server for your LAN" and entered the proxy address and port. I asked them to check the "Advanced" proxy settings and they had "Use the same proxy server for all protocols" checked, and that's it. They mentioned that they had never clicked "Advanced" when setting it up.
    I setup my machine's config to match theirs and I got the issue to occur. I then un-checked "Use the same proxy server for all protocols" and everything worked fine. No SOCKS sockets were used.
    Hopefully you're still with me here...
    Why does Java assume that it should use SOCKS for the socket and IE does not when "Use the same proxy server for all protocols" is checked? How can I prevent this from happening?
    Specs: WinXP, Java 6, IE 7
    Edited: Changed title...

    Hello rhimo�
    I�m torturing my self for 3 day with a similar problem.
    At first a thought it was a Java version problem, so I installed the latest 6u3.
    After a lot of testing and googling, now I�m sure that it�s some kind of a bug.
    So, I�m using one public web address as a test:
    http://www.dailyfx.com/charts/Chart.html
    I set the java proxy settings to �USE BROWSER SETTINGS�
    I set the IE 7 PROXY with the exact server using port 8080.
    In ADVANCED SETTINGS, I Copy/Paste the same server/port to all the rest of the fields (HTTP, SECURE, FTP, SOCKS)
    So the �USE THE SAME PROXY SERVER FOR ALL PROTOCOLS� is unchecked.
    When I start the web site, everything is working OK, the �daily graph� comes out, and the java console log looks like this:
    Dec 25, 2007 2:54:09 PM com.netdania.ui.applet.c init
    INFO: Finance Chart 2.1.3
    Applet Browser: sun.plugin
    Dec 25, 2007 2:54:16 PM com.netdania.ui.applet.c init
    INFO: ... Loading complete.
    In connect() -> Switched to polling!, attemps: 1
    As you can see, the page loads after the 1st attempt.
    Java is using the SOCKS protocol with the defined server.
    Now, the problem comes when I select the �USE THE SAME PROXY SERVER FOR ALL PROTOCOLS�.
    First strange thing is that all fields becoming gray (which is OK) but the SOCKS field becomes blank and gray.
    Whit these settings I�m unable to open the �daily graph� and I receive this java console messages:
    Dec 25, 2007 3:02:07 PM com.netdania.ui.applet.c init
    INFO: Finance Chart 2.1.3
    Applet Browser: sun.plugin
    Dec 25, 2007 3:02:14 PM com.netdania.ui.applet.c init
    INFO: ... Loading complete.
    In connect() -> null, attemps: 1
    In connect() -> null, attemps: 2
    In connect() -> null, attemps: 3
    And so on�
    I assuming that the java is tying to connect using the same SOCKS protocol as before, but now, the server is undefined.
    I�ve try testing the same scenario with Firefox but there I find more bugs:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6504564
    So, if you decide to do the same tests, I recommend using IE7 and latest Java 6u3.
    I think that this is one more Microsoft issue, and the solution will come as sooner as possible.
    Please reply me with eventual solution.
    Thanks.

  • I used to access internet in mozilla firefox 9 with no proxy settings,now it works well under proxy server. but i can not access it in no proxy. help plz

    i tried disabling windows firewall, and tried to add firefox in firewall also, but none of these works.

    You can try to set '''Auto-detect proxy settings for this network''' in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Advanced''' > '''Network''' > '''Settings'''. If it's still not working you may have to contact the network provider.
    [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]

  • Auto detect proxy setting

    in my organization , we are using auto detect proxy setting and my All browser are able to access internet
    through auto proxy but Mozilla is not working with auto detect proxy settings ,unable to access internet .
    kindly suggest for the same issue ASAP.

    hi
    yes here we are using auto detect proxy setting bcz for quich change of network . like a user is working in my office and in second half he will be on a client side . so he will just connect his device without any IP configuration . and also there is no need to remember IP settings.
    so pls help me to resolve to this issue .

  • Why wont my proxy settings stay when i change them?

    Every time i open my firefox browser it says "serve was reset" so i change the proxy settings to automatically detect proxy settings. when i close my browser and open it back up it says "server was reset" and the proxy settings were set back to what they were before i changed them.

    Could you describe in a bit more detail what you mean by clicking on the toolbar to open your home page: are you clicking the Home button, or using reload, or using a bookmark?
    Does the same problem occur when you open a new window (Ctrl+n), or only when you use your Firefox desktop icon?
    ''If the problem is specific to your shortcut on the desktop:''
    Check whether the shortcut specifies any command-line parameters. Here's what I mean:
    right-click the icon > Properties > Shortcut tab
    The "Target" line should be selected. That line should not have any extra stuff after the following:
    32-bit Windows:
    "C:\Program Files\Mozilla Firefox\firefox.exe"
    64-bit Windows:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    If you see extra text after that, clear it out, save your change, and try the shortcut again. Any improvement?

  • Upon startup Firefox says "Proxy is refusing connections." When I select "Auto-Detect Proxy" from Advanced settings and solve problem, changes are not saved and upon next startup I must select again...!

    Firefox 4 was working fine. Then one day, when I started up Firefox, it says "Proxy is refusing connections." I solved this by selecting "Auto-Detect Proxy" from Advanced network settings, but my changes are not saved and upon every start-up I must select it again! (I even completely removed my webroot antivirus protection, as it as hindering many proxy related programs, but this seems to not be the source of the problem)

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for

  • Layout Mode

    Hi I have created my site in dreamweaver, but it is not appearing in the browser as it should. I have two tables that need to be lined up with each other in the centre. Although, when I create it in layout mode it appears correctly but then when I pr

  • My daughter wants to purchase an ipod touch.  Are there charges or fees for texting ipods other than ios5 systems (i.e. ios4's, etc.)?

    My daughter wants to purchase an ipod touch.  Are there charges or fees for texting another ipod with a system other than the ios5 (i.e. ios4,etc.)?

  • Initial questions about LVM 2.0

    Hi,   I´m new to SAP LVM; a colleague installed LVM 2.0 and now I´m going to take over this project. I have some questions for you : 1) when I log to LVM console, there´s no Infrastructure icon besides the Configuration one -> it´s missing (see attac

  • CMD_EI_API Documentation

    Is there any documentation of the api CMD_EI_API to create/modify/update clients? I'm having a trouble when i update the phone number, it's deleting info that i have at the same level like fax, smtp (and i'm not marking it to update). Thanks.

  • Passing parameters to an embedded swf

    Hi all, I'm trying to embed a SWF animation that contains parameters (flashvars). I successfully used this animation in HTML and passed values to these parameters and now I want to embed it in a Flex project. I managed to load and show the animation