为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox prefers IPv4 address in a dual-stack environment

  • 3 个回答
  • 0 人有此问题
  • 2 次查看
  • 最后回复者为 JasMan

more options

Hi,

I'm using IPv4 as well as IPv6 addresses in my home network. But Firefox uses always the IPv4 connection when I open a website. When I open the same website in MS Edge, the IPv6 connection is used.

I've captured the network traffic during opening a website in Firefox, which is reachable over IPv4 and IPv6. First I see two DNS queries (A and AAAA) for the domain name. Both responses containing the correct IP address, and they arrive nearly at the same time at the client. Next I can see the TCP handshake. But it's send between the IPv4 address only. No IPv6 connection was attempted.

When I run the IPv6 test at https://test-ipv6.com, the IPv6 resuls are nearly fine. Only the web browser test says "Your browser has real working IPv6 address - but is avoiding using it."

When I run the same test in MS Edge, all tests are fine.

So it seems that this is not a OS or network issue. It affects Firefox only.

What I've already tried:

  • Disabled all extensions
  • Created a new profile
  • Used the IPv6 address of the website instead of the FQDN -> Works fine.
  • Checked DNS cache of Firefox (about:networking). It contains the IPv4 and IPv6 addresses of the requested websites

I guess that Firefox prefers the A record for some reason. But I've no idea why. Has anybody an idea what could causing this?

Thanks.

Jas Man

Hi, I'm using IPv4 as well as IPv6 addresses in my home network. But Firefox uses always the IPv4 connection when I open a website. When I open the same website in MS Edge, the IPv6 connection is used. I've captured the network traffic during opening a website in Firefox, which is reachable over IPv4 and IPv6. First I see two DNS queries (A and AAAA) for the domain name. Both responses containing the correct IP address, and they arrive nearly at the same time at the client. Next I can see the TCP handshake. But it's send between the IPv4 address only. No IPv6 connection was attempted. When I run the IPv6 test at https://test-ipv6.com, the IPv6 resuls are nearly fine. Only the web browser test says "Your browser has real working IPv6 address - but is avoiding using it." When I run the same test in MS Edge, all tests are fine. So it seems that this is not a OS or network issue. It affects Firefox only. What I've already tried: * Disabled all extensions * Created a new profile * Used the IPv6 address of the website instead of the FQDN -> Works fine. * Checked DNS cache of Firefox (about:networking). It contains the IPv4 and IPv6 addresses of the requested websites I guess that Firefox prefers the A record for some reason. But I've no idea why. Has anybody an idea what could causing this? Thanks. Jas Man

被采纳的解决方案

I've solved it by myself today :)

My first thougts some days ago went into the same direction, that the IPv6 test http://detectportal.firefox.com/success.txt?ipv6 fails. But the test was and is always successfull.

But there's another IPv6 test in Windows. It tries to reach http://ipv6.msftconnecttest.com/connecttest.txt to test the IPv6 connection. And this URL has been blocked. I was aware about it, but I didn't thougt that this affects Firefox, because Firefox uses its own test. And Microsofts browser Edge works fine, so why should a Microsoft test affect Firefox, but not Edge?

Long story short: I allowed the URL and after a reboot the IPv6 test was successfull. I've disabled the Microsoft NCSI test as final solution. Not sure if this will harm any other functions, but I'm happy that I've found out the culprit. For more information about Microsofts NCSI test see https://heikorichter.name/post/424/microsoft-connection-status-indicator/

Thanks for your answers :)

定位到答案原位置 👍 1

所有回复 (3)

more options

Not sure which link you mean, so I've attached a screenshot of my WAN modem (ISP is Deutsche Telekom), my Ethernet connection (ipconfig) and the result of the test site in both browsers.

Hope this helps to understand my issue :)

more options

Firefox uses this to test for IPv6 support.

I checked with Gmail and the Network Monitor shows for all requests an IPv6 address (you need to expand the GET section). In other cases I see the IPv6 address used for "gstatic.com" requests.

You can search the about:config page for "ipv" to verify that all IPv prefs are default.

You can check the connection settings.

  • Settings -> General -> Network: Connection -> Settings

If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.

See "Firefox connection settings":

more options

选择的解决方案

I've solved it by myself today :)

My first thougts some days ago went into the same direction, that the IPv6 test http://detectportal.firefox.com/success.txt?ipv6 fails. But the test was and is always successfull.

But there's another IPv6 test in Windows. It tries to reach http://ipv6.msftconnecttest.com/connecttest.txt to test the IPv6 connection. And this URL has been blocked. I was aware about it, but I didn't thougt that this affects Firefox, because Firefox uses its own test. And Microsofts browser Edge works fine, so why should a Microsoft test affect Firefox, but not Edge?

Long story short: I allowed the URL and after a reboot the IPv6 test was successfull. I've disabled the Microsoft NCSI test as final solution. Not sure if this will harm any other functions, but I'm happy that I've found out the culprit. For more information about Microsofts NCSI test see https://heikorichter.name/post/424/microsoft-connection-status-indicator/

Thanks for your answers :)