How to disable ipV6 in Google Chrome (version 45)?

KnightFox picture KnightFox · Sep 2, 2015 · Viewed 33.8k times · Source

I recently updated Chrome on my developer machine to v45. This update seems to set my client Ip to always use IpV6. Some of the applications I am developing locally require me to use Ipv4 so I need to disable Ipv6 on chrome. I tried solutions mentioned in

Is there a way to disable IPv6 in Google's Chrome?

but that doesn't seem to resolve my problem.

Answer

jac picture jac · Sep 27, 2015

Short answer

The Chrome's method for resolving names (async-dns) is ignoring the OS's IPv4/IPv6 precedence.

You can try to launch Chrome from the console with the flag --disable-async-dns but, obviously, you'll loose that functionality.

Long answer

There are two reasons because you can't disable IPv6 in Chrome:

  • Google is not providing anymore the option to deactivate IPv6 since 1149303005.
  • Your OS must implement the "policy table" described in RFC3484. With it you should be able to give IPv4 precedence for all applications, inclunding Chrome. Nevertheless, Chrome is not working as expected: there is a known issue 516305 not fixed.

So you must disable "async dns" or you have to hack it out of Chrome, for example:

  • Using the etc/hosts file.
  • Choose (or deploy) an IPv4-only DNS and configure it in your OS's network configuration.
  • Install a web proxy with IPv6 disabled, then configure Chrome for using it.