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.
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.
There are two reasons because you can't disable IPv6 in Chrome:
So you must disable "async dns" or you have to hack it out of Chrome, for example:
etc/hosts
file.If you are on windows, you can add the ipv4 address and the hostname to the hosts file (located: c:\windows\System32\drivers\etc\hosts). Then the browser does not look up the dns to get the ip address but uses the ip address that you have provided in the hosts file.
On ios/mac the hostfile is located here: /private/etc/hosts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With