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!

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 2 respostas
  • 0 têm este problema
  • 1 visualização
  • Última resposta por 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

Todas as respostas (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.

Modificado por jscher2000 - Support Volunteer a

more options