How to Fix The “Failed to Connect to the KMS server” Error (2024)

One of my colleagues from the non-tech division came to me very anxiously and asked, “How to fix KMS Server failed?” I told him to come down and assured him I would solve the problem.

I discovered the overload of clients in the host computer. So, I solved his problem while I explained why this problem had occurred in the first place.

Are you also irritated trying to fix the Failed to connect to the KMS server? If the answer is Yes, don’t waste your time and start reading.

So, why does the “Failed to connect to the KMS server” occur?

The “Failed to connect to the KMS server” occurs if the internet connection is lost, the activation is lost or expired, there are overloaded clients, not connected to the correct port, the client computer ID correlates with other numbers and some more.

As there are many reasons behind occurring this problem, there amany of ways to solve it too. So, to solve yours, hop in my tandem bicycle, and ride along till the end.How to Fix The “Failed to Connect to the KMS server” Error (1)

Check our latest post on how to Fix Sound Cracking Issue on Windows 11.

Quick Navigation hide

How to Fix the Connection to my Failed KMS Server

1. Check the Internet Connection

2. Reset the Client Computer ID

3. Activate your Computer

4. Connect to the Right Port

5. Check the Client Number

How to Open Firewall Ports in Windows 10

Conclusion

How to Fix the Connection to my Failed KMS Server

Suppose your run a company is working 60 employees for you. They need to activate Windows for using all the Microsoft products. But the process can be lengthy. You can use the KMS server to shorten the time in an efficient way.

So, what is a KMS server?

A KMS server is an OS activation where KMS stands for Key Management Server for Microsoft product activations. You can configure a KMS Server to service all activation requests in your enterprise. The KMS Server will communicate with Microsoft servers on the internet to activate the KMS license.

But as you are reading this article, I believe you already know what a KMS server really is and how it works or stuffs like that. So, I will go straight to the solution on fixing the connection to your KMS server.

There are 7 definite ways to solve your KMS connection problem. But before starting any of those, make sure you upgrade to the latest version of Windows, which is correctly licensed. Thus you can make your product functional and get regular updates that solve your bugs problem.

Follow our guide on VPN Not Working on Windows 11.

1. Check the Internet Connection

If your internet connection is gone or pretty bad when working, it might hamper your KMS server working perfectly which will be a KMS server failure later. Here’s how to check your internet connection on Command Prompt:

  • Click on the Start Menu, type cmd, and hit Enter. It’ll open the Command Prompt window.How to Fix The “Failed to Connect to the KMS server” Error (2)
  • Type ping google.com -n 25 in the Command Prompt and hit Enter.ping google.com -n 25How to Fix The “Failed to Connect to the KMS server” Error (3)

Proceed with the next steps if you find them all okay. But suppose you face issues with Command Prompt; in that case, you should check your antivirus, create a new user account, install latest updates, disable non-Microsoft context menu items, and create a Command Prompt shortcut on your desktop.

Note: Make sure you have a stable internet connection.

Check out the easiest way to Fix Function Keys Stopped Working on Windows 11.

2. Reset the Client Computer ID

Sometimes you need to reset the client’s computer ID as it creates problems in connection with the KMS Server. By resetting, you are operating your client’s computer for the first time. It can resolve many of your problems. To do this:

  • Click on the search bar right-hand side of the Windows icon.
  • Type cmd, and click Run as administrator.How to Fix The “Failed to Connect to the KMS server” Error (4)
  • Type sysprep /generalize in the Command Prompt. It will reset the client’s computer ID. If it doesn’t work, slmgr /rearm instead of sysprep /generalize.How to Fix The “Failed to Connect to the KMS server” Error (5)

Resetting your client’s computer ID sometimes solves the issue of fixing the KMS Server connection failure. If it doesn’t change anything, try following the next one.

Quickly check out our latest fix for Delete Temp Files on Windows 11.

3. Activate your Computer

If your computer is not activated or lost it’s activation somehow, you might have this issue on your PC. So, you need to activate your computer and then proceed to activate your Microsoft Office copy.

  • Click on the search bar right-hand side of the Windows icon.
  • Type Control Panel and hit Enter.How to Fix The “Failed to Connect to the KMS server” Error (6)
  • Go to System and Security.How to Fix The “Failed to Connect to the KMS server” Error (7)
  • Click on System.
  • Search for Windows is activated message below on that window.

If it is not activated, you need to activate your Windows at first. Try activating your Office copy then.

Do check our latest post on the Fix Installation Failed Error 800f0830 on Windows 11.

Note: Make sure Windows is activated on your client’s computer.

4. Connect to the Right Port

Firewall rules can block TCP traffic on the KMS port. So, make sure you know the rules and connect to the right port. To do this, you need to:

  • Press the Windows key on your keyboard.
  • Type cmd and click on Run as administrator.How to Fix The “Failed to Connect to the KMS server” Error (8)
  • Type vb /dlv on the Command Prompt.How to Fix The “Failed to Connect to the KMS server” Error (9)
  • Search Listening on Port.

You can find out the port on your host computer. So, if it looks all good but still doesn’t solve your problem, try the next steps. I believe you have solved your problem by now. If I’m wrong, keep reading till the end and try the rest of the steps.

Follow our guide to Fix Update Error 8024402F on Windows 11.

5. Check the Client Number

If you got more than 25 clients’ IDs connected to your host computer, your device might fail to connect to the KMS Server. Besides, the threshold limit is 5 for the Server editions. So you need to check whether you have crossed the limit or not. To check this, you have to:

  • Press the Windows key and search cmd.
  • Click on Run as Administrator.
  • Type vbs /dli and hit Enter.

You’ll be able to see if the threshold is met. If you find overloaded clients, cut some connections and try reconnecting to the KMS Server.

Quick Tip: Look in the Application event log for event ID 12290 on the KMS host computer. Check this log if you find any request made by the client’s computer. If there are no requests, then that indicates the client could not communicate with the host.

Read more on how to Fix Blue Screen on Windows 11.

How to Open Firewall Ports in Windows 10

A firewall is considered a security device in the form of computer hardware and software. It helps you to protect your network by acting as a wall between your internal network and outside traffic.

The firewall works like a gatekeeper— monitors attempts to gain access to your OS, blocks the unwanted traffic and provides different levels of protection. If you need firewall ports in your Windows 10, you can open them by performing a specific procedure.

  • Press the Windows key on your keyboard and search Control Panel and hit Enter.
  • Click to System and Security and Windows Firewall afterward.
  • Choose Advanced settings from the left bar and click on the Inbound Rules.
  • Select New Rule from the right-hand side’s Action
  • Add the port you have to open and click Next.
  • Add the protocol whether it’s a TCP or UDP and input the port number. Click Next.
  • Select Allow the connection and click Next.
  • Choose the network type which seems fit to you and click Next.
  • Name the Rule which seems the best and click Finish.

You can secure your data by Firewall and solve your failure to connect to the KMS Server issue.

Check out our separate post to Change Power Mode on Windows 11.

Conclusion

The number of daily clients can be too big over time. So the server can stuck at times. Most of the cases I found consisted of this problem. So check if the server is overloaded. Besides, there are other problems that can cause this issue to happen with you.

Read every step and try them on your computer carefully to fix the connection to the KMS server. If you have other inquiries, don’t hesitate to comment below.

How to Fix The “Failed to Connect to the KMS server” Error (2024)

FAQs

How do I fix the connection to my KMS server failed? ›

How do I fix connection to KMS server failed?
  1. Check your Internet connection. ...
  2. Upgrade your Windows OS. ...
  3. Check if the computer is activated. ...
  4. Check if you have more than 25 clients. ...
  5. Check the client communicated with the host. ...
  6. Open the right port. ...
  7. Configure DNS properly for multiple KMS hosts.
Dec 5, 2022

How do I connect to my KMS server? ›

Open an elevated command prompt and run one of the following commands:
  1. To install the KMS key, run the command slmgr.vbs /ipk <KmsKey> .
  2. To activate online, run the command slmgr.vbs /ato .
  3. To activate by telephone, follow these steps: Run slmgr.vbs /dti and confirm the installation ID.
Feb 27, 2023

Why is KMS not working? ›

A KMS host failed

If a KMS host fails, you must install a KMS host key on a new host and then activate the host. Make sure that the new KMS host has an SRV RR in the DNS database.

What is KMS error? ›

0xC004F039 The Key Management Service (KMS) is not enabled

The full text of this error message resembles the following: The Software Protection Service reported that the computer could not be activated. The Key Management Service (KMS) is not enabled.

How do I reset my KMS settings? ›

Answers
  1. Uninstall the KMS host key first by running the following command: slmgr -upk.
  2. Then, install the default kms key by running the following command: slmgr /ipk [KMS Client Setup Key] The default KMS client setup keys can be found here: ...
  3. Delete the record from the DNS: Open DNS console: ...
  4. The KMS server is uninstalled.
Jun 29, 2010

How do I unblock a KMS server? ›

If you have a firewall, make sure port 1688 is open to allow the KMS host service through the firewall. Go to Control Panel > System and Security > Windows Firewall (or Windows Defender Firewall). Click the Allow an app or feature through Windows Firewall link.

What is KMS server for? ›

KMS uses a client-server model to active Windows clients and is used for volume activation on your local network. KMS clients connect to a KMS server, called the KMS host, for activation. The KMS clients that a KMS host can activate are dependent on the host key used to activate the KMS host.

How do I find my KMS server IP? ›

Look for the KeyManagementServiceName data and this should return your KMS server. Do a ping of this and it should then return you the IP address of the KMS server. Run "slmgr /dlv" and you will get the KMS host name.

How do I check my KMS connection? ›

How do you check if Windows is activated by KMS? To check if the client computer is properly activated, you can either check in the Control Panel System or run the SLMgr script in the command prompt. To check run Slmgr. vbs with the /dli command-line option.

What ports are needed for KMS? ›

KMS TCP listening port – By default, the KMS host is listening on port 1688 (TCP). You can change the port if needed using this setting.

How do I force Office to activate KMS? ›

Log into your computer with an administrator account. Change to the directory where Microsoft Office is installed. cscript ospp.vbs /act to complete the activation process.

Is KMS server bad? ›

Genuine Windows activation methods, such as KMS activation for large-scale organizations and digital keys for individual users, are the recommended and safe approach to activating your Windows operating system.

What is KMS virus? ›

KMS is Malwarebytes' detection name for a Hacktool that allows the user to use Microsoft software illegally.

What happens if you delete KMS? ›

After a KMS key is deleted, you can no longer decrypt the data that was encrypted under that KMS key, which means that data becomes unrecoverable.

How to check KMS server from client? ›

On the client machine, from an elevated command prompt, type SLMGR. vbs /dlv. This will give you verbose output of the Software Licensing service. Refer to the "KMS machine name from DNS:" field for the FQDN of the KMS host.

Does KMS need to be activated? ›

To use KMS, a KMS host needs a key that activates, or authenticates, the KMS host with Microsoft. This key is sometimes referred to as the KMS host key, but it is formally known as a Microsoft Customer Specific Volume License Key (CSVLK).

What is the default KMS key? ›

A KMS default master key is used by an AWS service such as RDS, EBS, Lambda, Elastic Transcoder, Redshift, SES, SQS, CloudWatch, EFS, S3 or Workspaces when no other key is defined to encrypt a resource for that service. The default key cannot be modified to ensure its availability, durability and security.

Can a KMS server activate itself? ›

The KMS clients find the KMS host via a DNS SRV record (_vlmcs. _tcp) and then automatically attempt to discover and use this service to activate themselves. When in the 30 day Out of Box grace period, they will try to activate every 2 hours. Once activated, the KMS clients will attempt a renewal every 7days.

How do I find my KMS server in DNS? ›

To check your DNS for KMS servers: Open DNS console and expand _tcp node under the domain.com. Verify that there a record _VLMCS.

What is KMS server address? ›

Online KMS host address: kms.srv.crsoo.com.

Why is KMS needed? ›

AWS Key Management Service (KMS) gives you centralized control over the cryptographic keys used to protect your data. The service is integrated with other AWS services making it easier to encrypt data you store in these services and control access to the keys that decrypt it.

What is the KMS service name? ›

Many customers still use KMS activation for on-prem deployments.

What is KMS activation? ›

The Key Management Service (KMS) is an activation service that allows organizations to activate systems within their own network, eliminating the need for individual computers to connect to Microsoft for product activation.

How do I check my server license status? ›

Answer
  1. Open an elevated command prompt: ...
  2. At the prompt, type: slmgr /dlv.
  3. The license information will be listed and the user can forward the output to us.
Aug 5, 2022

How do I install a KMS key? ›

Select Install product key in the Selected Items menu in the right-side pane to display the Install Product Key dialog box. The Install Product Key dialog box displays the keys that are available to be installed. Select the Automatically select an AD or KMS client key option and then select Install Key.

What is KMS connector? ›

Details. A simple Amazon KMS connector. With this connector, you will be able to call most of all common actions from Amazon KMS SDK. You will be able to create a new Key, set polices, list keys and encrypt/decrypt texts.

How do I know if port 5000 is open? ›

Enter "telnet + IP address or hostname + port number" (e.g., telnet www.synology.com 1723 or telnet 10.17. xxx. xxx 5000) to run the telnet command and test the port status. If the port is open, a message will say Connected to 10.17.

What ports need to be open for IKEv2? ›

By default, IKEv2 uses IPSec, which requires UDP ports 500 and 4500, and ESP IP Protocol 50.

How long does Office KMS activation last? ›

According to the Microsoft article: Understanding KMS, in the KMS Activation Renewal section, it states that "KMS activations are valid for 180 days—the activation validity interval. To remain activated, KMS client computers must renew their activation by connecting to the KMS host at least once every 180 days.".

Can Office 365 be activated with KMS? ›

The Office 365 edition of Office (downloaded from Microsoft) does not use KMS activation. Please DO NOT attempt to follow these instructions if you have the Office 365 edition. Open an Elevated Command Prompt window. For instructions, please see our guide How To Open an Elevated Command Prompt.

How do I remove KMS activation from Microsoft Office? ›

Step by Step Guide:
  1. Identify the activation ID by running this cmd: Slmgr/dlv.
  2. Uninstall the KMS host key first by running CMD: Slmgr/upk < activation ID>
  3. Then, install the default kms key by running the following command: slmgr /ipk <KMS Client Setup Key> ...
  4. Delete the record from the DNS: ...
  5. The KMS server is uninstalled.
Sep 18, 2018

Is KMS auto malware? ›

A is classified as a type of Riskware. Riskware is any potentially unwanted application that is not classified as malware, but may utilize system resources in an undesirable or annoying manner, and/or may pose a security risk.

How do I disable KMS key? ›

Enabling and disabling KMS keys (console)

In the navigation pane, choose Customer managed keys. Choose the check box for the KMS keys that you want to enable or disable. To enable a KMS key, choose Key actions, Enable. To disable a KMS key, choose Key actions, Disable.

Is KMS keys safe? ›

The data keys are encrypted under a root key you define in AWS KMS so that you can safely store the encrypted data key along with your encrypted data. Your encrypted data key (and therefore your source data) can be decrypted by only users with permissions to use the original root key to decrypt your encrypted data key.

Is KMS activator risky? ›

If you are using KMSPico Activator for activating your Windows or MS Office, then you could be risking yourself to a ransomware infection. Quick Heal Threat Research Labs has recently observed a new variant of ransomware called Domino that is using this activator as a carrier.

Is KMS auto illegal? ›

Activation servers (KMS) through an organization or educational institution is legal, and should be used for those intents and purposes.

Is KMS key a secret? ›

The data key is encrypted under a KMS key and stored in the metadata of the secret. To decrypt the secret, Secrets Manager first decrypts the encrypted data key using the KMS key in AWS KMS.

What does KMS mean Windows 10? ›

KMS (Key Management Service) is one of the methods to activate Microsoft Windows and Microsoft Office. Activation ensures that the software is obtained from and licensed by Microsoft.

How many KMS servers can I have? ›

We recommend only having a single KMS host for both Windows and Office. Having more than one KMS host on a network is not necessary and it adds more administration work to implement. The additional work involves preparing DNS to let multiple computers manage _VLMCS records.

How do I remove KMS from Windows 10? ›

Remove unauthorized Windows KMS hosts
  1. Open an elevated command prompt.
  2. Run cscript slmgr. ...
  3. To prevent instability in the license service, restart the system or the Software Protection Service. ...
  4. Run the following command to display the license information for the installed and active Windows edition:
Mar 16, 2023

How do I remove KMS server from my computer? ›

To uninstall KMS (Key Management Service) on a Windows 10 machine, follow these steps:
  1. Press the Windows key + R to open the Run window.
  2. Type "appwiz. ...
  3. Scroll through the list of installed programs and locate the KMS service.
  4. Select the KMS service and click the "Uninstall" button at the top of the window.

What does KMS failed to activate with error 0xc004f074? ›

This error occurs for one of the following reasons: The Software Protection Platform Service (sppsvc service) on the KMS host has stopped running. There are networking issues between the KMS client and the KMS host server. For example, TCP 1688 traffic is blocked between the KMS client and the KMS host server.

What is KMS error 0x8007232B? ›

KMS Error 0x8007232B Troubleshooting Steps

Make sure that the DNS service is running on the specified server by checking the services list. Ensure that there are no firewall rules preventing communication with the specified server. You can check this by looking at the firewall rules on both the client and server sides.

How do I activate Office 365 KMS server? ›

Manual KMS activation
  1. Log into your computer with an administrator account.
  2. Type into the search field. cmd.exe.
  3. Click with the right mouse button on cmd.exe and select “Run as Administrator”
  4. Enter. ...
  5. To complete the activation process enter.

Is KMS activation harmful? ›

KMS is a legitimate way to activate Windows licenses in client computers, especially en masse (volume activation). There is even a Microsoft document on creating a KMS activation host. A KMS client connects to a KMS server (the activation host), which contains the host key the client uses for activation.

What is KMS activation error 0XC004C008? ›

Error 0XC004C008 can occur if the KMS key has exceeded the activation limit. KMS keys will activate up to 10 times on six different computers. You need to contact the Microsoft Activation Center. Please remember to mark the replies as answers if they help.

What is KMS server activation? ›

KMS uses a client-server model to active Windows clients and is used for volume activation on your local network. KMS clients connect to a KMS server, called the KMS host, for activation. The KMS clients that a KMS host can activate are dependent on the host key used to activate the KMS host.

What problem occurred when Windows tried to activate 0x8007232B? ›

Error code 0x8007232B indicates that you are using a KMS key to activate Windows. KMS is one kind volume licensing key. KMS uses a client–server topology, it is not applied your situation.

How do I force KMS to activate Office 2016? ›

Activate Desktop Edition of Microsoft Office 2016
  1. Open an Elevated Command Prompt window. For instructions, please see our guide How To Open an Elevated Command Prompt.
  2. CD \Program Files\Microsoft Office\Office16. ...
  3. cscript ospp.vbs /sethst:kms01.cit.cornell.edu. ...
  4. cscript ospp.vbs /act. ...
  5. Close the command prompt window.
May 19, 2022

How to activate Excel without product key? ›

Step 1: Go to www.office.com/setup or Microsoft365.com/setup. Step 2: Sign in with your Microsoft account, or create one if you don't have one. Be sure to remember this account so that you can install or reinstall Office later, without a product key.

How do I install a KMS license key? ›

Select Install product key in the Selected Items menu in the right-side pane to display the Install Product Key dialog box. The Install Product Key dialog box displays the keys that are available to be installed. Select the Automatically select an AD or KMS client key option and then select Install Key.

Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5991

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.