myIpAddress() returns IPv6 address in Firefox 4 proxy.pac file

I have a proxy.pac file that works very well with IE9 and Chrome in Windows 7 that selects a proxy based on myIpAddress(). It did not work in Firefox 4 and it turns out that myIpAddress() amounted to the IPv6 address of the computer, instead of the IPv4 address. Is there another function that is guaranteed to return the IPv4 address, or some other parameter that would guarantee myIpAddress() returns the IPv4 address? I would rather not remove the Protocol IPv6 to the client computer.

We used the isinnet function (myipaddress ()) to determine if a laptop was in the company network or not, in this way, we could tell the browser to use the proxy or not.
As an alternative, we went to check if an internal DNS address can be resolved or not.

function FindProxyForURL (url, host)

{

       // proxy only needed if in 10.10/16
       //if(!isInNet(myIpAddress(), "10.10.0.0", "255.255.0.0"))
       //        return "DIRECT";
      // This is now used as the above has issues with ipv6
          if(!dnsResolve("name.internal.domain"))
                   return "DIRECT";
       // if resolvable use the proxy
                return "PROXY proxy.internal.domain:8080";

}

Hope it will be useful, because it took a little time to think about it. (with the help of a colleague)

Tags: Firefox

Similar Questions

  • IE8 Crash with a native installation of IE11 and using the proxy pac file.

    This issue seems to be specific to a windows 7 with a native installation of IE11 and using a cap of proxy for the configuration file.  From what I can understand newspapers, all the right files are take care of packaging.

    What happens on computers of 32 and 64 bit.  The IE8 was captured by sheet of VMWare and the fix IEShims.dll is enabled.

    I tried the 'wow64 = 0' setting as well as the 'AltArchitectureShortcut = 0' in the file package.ini.  None of these settings seem to help.

    Any idea would be appreciated.

    Lance

    Updated the original message to match the correct number. Post edited by: lcourson

    So after much troubleshooting, I have discovered that the file which was causing issues is jsproxy.dll.  This file has changed between Windows XP (which is where IE8 has been captured since) and Windows 7.  There is one missing method in version XP, InternetGetProxyInfoEx.  I just ran across this issue because we use a pac file for our proxy assignments.  This seems to be a similar problem for the IEShims.dll http://kb.vmware.com/kb/2038758fix.

    This fix should be the same that the IEShims hotfix, copy the version jsproxy.dll from a machine of IE8 windows 7 to the package and recompile.

    This put it out there in case someone else is going through this issue.

    Lance

  • How to return your hypervisor IPv6 address using powershell?

    Hello

    I'm trying to use powershell to return the IPv6 address of my host esx 5.5 Update 2.  I used powercli 6.0, but when I try to run either:


    Get-VMHostNetworkAdapter | Select VMhost, Name, IP


    or


    Get-VMhost | Get-View | Select Name, @{N = 'IP address'; E = {($_.Config.Network.Vnic |?)} {$_. Device - eq "vmk0"}). Spec.Ip.IpAddress}}

    they all return two empty fields for the IP address.  PowerShell is not able to return to the IPv6 address?

    Thanks in advance.

    Did you try you alreade with Get-EsxCli , and then

    $esxcli.network.ip.interface.ipv6.address.list)

  • How to return to 24 of Firefox

    Upgrade to FireFox 25 on 05/11/13 and could get some information on a site immediately not much confidence I took for granted with FireFox 24. I use this feature A MUCH (MUCH!) Every day. But now I can't. The site allows you to display certain information automatically but seems not to do. By default FireFox reset or what you call does not solve the problem. How to return to 24 of FireFox to see if that solves the problem? The forum thing doesn't have the answer I can say. Your website doesn't even have it.

    Hi WarrenSmalley, to replace your current bookmarks + historical database with the former, you need to open both files at the same time, the release of Firefox, then copy the old file (I suggest copying rather than moving so that you can keep a non-corrupt copy).

    To open your current profile folder, either:

    • use the help > troubleshooting information > "view file" button.
    • type or paste everything: in the address bar and press Enter > "view file" button.

    You already know the location of your old profile folder (Desktop-old data from Firefox).

    After the release of Firefox, allow a few moments for the files to be updated before making the change.

  • Hi, I got a new computer... when I type an address in firefox... it says address not found... IE works fine... Help

    Hi, I got a new computer with win7... I had the probs with my first download of firefox... did a reinstall... what happens is when I type an address in firefox I get error message saying search returns no. results... all works well IE... Please help me defeat the dark... I need to my FIREFOX back... is there some settings I need to try?... I thought I did all right

    Follow the suggestions mentioned in the following article:

    Check and tell if its working.

  • Address of Firefox 39 bar does not

    The address bar does not work. I type the address and press ENTER, but nothing happens. I also tried clicking the arrow to the right of the address bar, but who does not work either. The rest of the buttons work. I tried refreshing Firefox, uninstall and reinstall Firefox and from Firefox in safe mode.

    Hi kbuckler,
    Sorry, you have problems with Firefox.

    It is certainly what is now a known issue (Bug 1180419) affecting users with a corrupted database history and bookmarks.

    There is a difficulty of finding the Firefox profile, while Firefox is open. Closing Firefox. Rename the file places.sqlite (say places.sqlite.broke1).

    Firefox should then work on reboot. Unfortunately, you lose the history. Loss of history apart from his obvious loss also affects the use of the autocompletion of the location bar (aka awesomebar) and your newtab tiles.

    See for this

    but I'll put the instructions below. (Based on windows see the articles if needed similar information, Mac or Linux)

    Find the profile

    Click on the menu {(trois bar icône) button click help {(?)) and select troubleshooting information.}} The troubleshooting information tab will open.
    In the section the Application databases, click [Open Directory]. It will open a window with your profile files.

    Closing of Firefox
    Find the file called places.sqlite in the profile folder, you have opened.
    Rename this file. I suggest you call it places.sqlite.broke1
    Restart Firefox.
    Firefox will re-create the database, using the latest automated backup, there when it is restarted.

    Change of name, rather than deleting.
    If history or specifications according to it are very important there are advanced methods that can sometimes work in the database file broken attachment. The file has been renamed to - broke1 will serve a copy that you might consider to try to fix.
    The renamed file also leaves open the door to research methods of bookmarks lost if for example some very recent bookmarks were important and lost.

    minor typo;
    Also note the progress DND article https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/places.sqlite_Database_Troubleshooting

  • How to upgrade the proxy settings (.pac file is modified) without having to restart Firefox?

    How to upgrade the proxy settings without restarting Firefox?
    I have a .pac with a proxy configuration file.
    When I likely this .pac, I like that Firefox update settings in order to study the new .pac contents.

    You can do it with the Prefbar extension and Reload PAC button.

    https://addons.mozilla.org/en-US/firefox/addon/67148/ - PrefBar
    http://PrefBar.mozdev.org/buttons.html#reloadpac

  • What is the link-local IPv6 address?

    It shows that after thte IPv6 address: fe80:f0a2f0c4:6892:bf3 11%

    There are two forms of protocols Internet (IP), (former) IPv4 and IPv6 (the more recent).  IPv6 was created because of the need for an expanded on the Internet addressing scheme.  IPv4 address approaching the limit on no. of the places that could be addressed in a unique way, so IPv6 was created to solve the problem.  It is not something you normally bother you on.

    I hope this helps.  Good luck.

  • OfficeJet 7612: Can I print on OfficeJet 7612 IPV6 address (model number: G1X85A)

    I can use the IPV6 address to access the printer if I enclose the address in square brackets.

    But using the "IP Address update" tool brackets and colons are not allowed, which enters the IPV6 addresses are not allowed?

    Is it possible to print to the IPV6 address?

    This can be done - but not by using the HP software.

    Instead of using the HP applications "" Update IP address"or HP" printer setup and software ', use the control panel and use the "add new printer" there.

    When Windows search for the printer, you can cancel the search and then click on the button for "I don't see my printer listed.  This will take you to the screens that will allow you to manually enter the IP address and that he accepts the IPV6 address.  Once you enter the address, windows find the printer and allow you to use the HP drivers for it and choose a name for it

    So now, I have the printer appears twice.  Once with IPV6 and once with IPv4.  When in the VPN, I can print to the printer "IPV6".  And if not in the VPN, I can use the HP stuff for printing, set the IP address, check fax, scan and ink levels.

  • Purchase of IPv6 addresses

    I know that this is not a specific question of Cisco, but I'm curious to know how I'm going to reserve a block of IPv6 addresses for my business.  I've seen some people suggest on other forums that we are supposed to use the provided ISP address.  However since NAT is not a part of the IPv6 protocol, then we would be at the mercy of our ISPS, and could never change ISP without a painful IP address change internally.

    Thanks in advance.

    -Nick

    Take a look at http://blog.ioshints.info/2011/02/ipv6-provider-independent-addresses.html

    You have a few options.

    -Get the provider independent address space (you need to be multihomed, more a few other requirements)

    -The confidence that it is easier to an IPv6 renumbering network

    -Presentation of solutions such as LISP

    -use NPT66 (1:1 IPv6 NAT)

    see you soon,

    OLE

  • Can you use the IPV6 addressing in Codecs of the CTS?

    Can you use the IPV6 addressing in Codecs of the CTS? Otherwise, any plans for it?

    Thank you

    DR

    Hi David,

    / * Style definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-margin : 0 ; mso-para-marge-bottom : .0001pt ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-fareast-font-family : « Times New Roman » ; mso-fareast-theme-font : minor-fareast ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ; mso-bidi-font-family : « Times New Roman » ; mso-bidi-theme-font : minor-bidi ;}

    At present, there is no support for IPv6 in the points of termination CTS or infrastructure but Cisco TelePresence Business Unit can look at it in the future, but are currently not seen or heard anything.

    THT

    Arun

  • IPv6 address

    What is the IPv6 address?

    http://whatismyv6.com/

    http://msdn.Microsoft.com/en-us/library/aa917150.aspx

    http://www.Allstream.com/resources/white-paper-getting-ready-IPv6.html?utm_campaign=ipv6_whitepaper_q1_2013&utm_source=google_search&utm_medium=CPC&gclid=CIWXlum1gbcCFchM4AodGGIAHA

  • Cannot enter gateway ipv6 address while booting in Vsphere Management Assistant

    Hello

    After you deploy the model to the FVO, I have to configure the network settings for the device of the VMA. When you try to put the default gateway, I have to configure an ipv6 address. As we don't use ipv6, I tried to enter private ipv6 addresses, but I keep getting errors.

    VMware_ipv6.PNG

    The documentation states:

    If you use a static IPv4 network configuration to configure the IP address, DNS, default gateway and hostname, you must also configure the IPv6 default gateway when you first start network set up, otherwise the vMA may be inaccessible from the network after the connection.

    No help for configure this VMA is very appreciated!

    Friend

    WIllem

    Able to proceed to the configuration of the network after a reboot of the device of the VMA.

  • pouvez firefox mac read .url file?

    I have .url files and it seems that firefox mac is a never could be used to open these... .url files I tried to put as a default program to open .url but firefox app has never see the upward in the menu and it's grey outside and you might not choose it is the default application to open .url...
    is it possible to use mac firefox to open .url file?...
    Please advise...
    see you soon,

    It is a problem of operating system not a browser problem, the URLs of the files created by internet explorer which is only compatible Windows. Therefore, the .url file type is not compatible with Mac OS or any software created for her.

    However, you can extract the actual URL, you need the file:

    http://www.fmtz.com/formats/URL-file-format/article

    hope this is useful.

  • Despite all the suggestions here, I can't always firefox to play .wmv files.

    Have you tried the suggestions and nothing seems to work to get firefox 6 to read files .wmv embedded on Web sites.

    Even when I change the options in the section applications for something else (like always ask or register or use windows media player) he still flashes the same popup of error: "*.wmv cannot be opened, because the associated helper application does not exist. Changing the association in your preferences. »

    Try 'Reset download Actions'

Maybe you are looking for

  • International users

    In the Group of the Apple TV, I saw several questions from users who are obviously by means to access American iTunes and Netflix from abroad. The gift is when they mention that it works when they the region in their own country. They are often very

  • First time multithreading in Labview

    I learn Labview and this is my first project. I expect this behavior from my attached VI. I thought that both the indicator will increment asynchronously if I ask to wait for Member States inside the while loop. I thought indicator 1 will increment t

  • Is there a media player 13 and it will be for XP?

    I am very happy with the WMP11 in Windows XP and I want a new multimedia player advanced and please if microsoft makes another please could use us it on XP?

  • Alienware 15 R3 Wake-on-LAN

    I saw a similar thread about a 17 January R3; the conclusion was that the BIOS did not support WOL. What is the case for the 15 R3? My magic packets (by cable) are not wake it standby, hibernation, etc.. My pilot killer properties allow this and I tr

  • load data from csv file into table

    HelloI'm working on Oracle 11 g r2 on UNIX platform.We have an obligation to load data to the table to a flat file, but on one condition, need to make the comparison between filed primary key if the file is available then update another filed and if