Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Any way to force Firefox to prioritize IPv4 without disabling IPv6?

  • 2 svar
  • 0 har detta problem
  • 1 visning
  • Senaste svar av cor-el

more options

Firefox prioritizes IPv6 (even on a network with internet-accessible fd00:: address, which contradicts my currently set up prefix policies) over IPv4. Now the problem is that my IPv6 address is a tunnelbroker.net one, and while I still want to be able to access the IPv6 internet, I don't want a tunneled connection to be my default. And I don't want to disable IPv6 completely. Is there a way to force Firefox to prioritize IPv4 over IPv6?

Note: the first time when connecting to a website, the browser connects via IPv4 (like the prefix policies are supposed to work), but then it remembers that the website is accessible via IPv6, saves it into the content-prefs.sqlite file (removing the said file makes the connection fall back to IPv4 first again) and connects via IPv6 again. Is there a way to make Firefox NOT remember that in content-prefs.sqlite and still connect abiding the prefix policies?

Using Firefox Dev Edition 103.0b9 on Windows 11 x64
Firefox prioritizes IPv6 (even on a network with internet-accessible fd00:: address, which contradicts my currently set up prefix policies) over IPv4. Now the problem is that my IPv6 address is a tunnelbroker.net one, and while I still want to be able to access the IPv6 internet, I don't want a tunneled connection to be my default. And I don't want to disable IPv6 completely. Is there a way to force Firefox to prioritize IPv4 over IPv6? Note: the first time when connecting to a website, the browser connects via IPv4 (like the prefix policies are supposed to work), but then it remembers that the website is accessible via IPv6, saves it into the content-prefs.sqlite file (removing the said file makes the connection fall back to IPv4 first again) and connects via IPv6 again. Is there a way to make Firefox NOT remember that in content-prefs.sqlite and still connect abiding the prefix policies? Using Firefox Dev Edition 103.0b9 on Windows 11 x64

Alla svar (2)

more options

I confess that I don't understand your question. How is a tunnel involved??

But I'm not aware of any built-in feature to reverse the preference for ipv6 over ipv4.

In case it helps: it appears you can add domain to an "ipv4-only" preference to bypass ipv6 for those domains. But this is only practical for a short list of sites. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste network.dns.ipv4OnlyDomains and pause while the list is filtered

(3) Double-click the preference to display an editing field, and add the desired domain(s) using the following syntax, then press Enter or click the blue check mark button to save the change:

example.com,example.org


Perhaps you can run your own DNS service that returns ipv4 addresses preferentially? If you're not the only person who ever wanted this, maybe it's out there somewhere.

Ändrad av jscher2000 - Support Volunteer

more options