A ping localhost does connect to However, I wanted to know of a way to disable the IPv6 loopback completely - so that software running on my machine does not know about the IPv6 loopback — O. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 2. So we need to create a new dword entry named "DisabledComponents". You can now disable IPv6 support by setting the value of DisabledComponents to a hex value of ffffffff that's 8 "f's". After you reboot, a ping of localhost will return You can do this by setting the value of DisabledComponents to a hex value of My personal preference is a belt and suspenders approach to make sure that localhost resolves to I set a The articles on this site focus on the configuration, administration, security, and performance tuning of common internet services and applications.
These include web, FTP and email servers. DNS and database servers. Firewall and anti-spam gateway configuration. General Windows and Linux server security. The initial ServerFault thread about using the DisabledComponents registry value is really the best way to do this. Hosts file tweaking should never be necessary in a well functioning network. The registry tweak is also much easier to deploy and revert via group policy if you have an Active Directory.
The reason it didn't work is because that DisabledComponents registry setting is read as a set of bit flags and not simply on or off. I do this on every machine I manage where we're not explicitly using IPv6. It has the nice side effect of significantly shortening the output of the ipconfig command. That should do it, if you just need "localhost" to always be IPv4.
However, if it's based on the server name, this probably won't work. Should do the trick. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question.
Asked 11 years ago. Active 5 years ago. Viewed 89k times. Improve this question. If you do, some Windows components may not function. Click Run or Open in the File Download dialog box.
This wizard may be in English only. However, the automatic fix also works for other language versions of Windows. Important Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur. Additionally, system startup will be delayed for 5 seconds if IPv6 is disabled by incorrectly, setting the DisabledComponents registry setting to a value of 0xfffffff.
The correct value should be 0xff. For more information, see the "What are Microsoft's recommendations about disabling IPv6? The DisabledComponents registry value does not affect the state of the check box. Therefore, even if the DisabledComponents registry key is set to disable IPv6, the check box in the Networking tab for each interface can still be checked. This is expected behavior. Administrators must create an.
0コメント