1. Firewall or Security Software Is Blocking IKE Ports
Most of the time, this error pops up when a third-party firewall—or the Windows Defender Firewall—blocks UDP ports 500 and 4500. These are the ports IPsec uses for IKE negotiations. If they're blocked, the negotiation never gets off the ground, and you'll see the 0x00003649 status before the VPN even connects.
You'll most often hit this on Windows 10 or Windows 11 after a fresh install, or after updating your antivirus with a new firewall module. Sometimes it's the VPN client itself—I've seen it with Cisco AnyConnect and OpenVPN. But first, let's check the simplest thing.
Check and add firewall rules
- Press Win + R, type
wf.msc, and hit Enter. - Click Inbound Rules in the left pane.
- Look for rules named IPsec or IKE. If you see them, right-click and Enable Rule if it's disabled.
- If you don't see any, click New Rule… in the right pane.
- Choose Port and click Next.
- Select UDP and enter
500, 4500in the specific local ports box. - Click Next, then Allow the connection, then Next again.
- Check all three profiles (Domain, Private, Public) and click Next.
- Name it
IKE Portsand click Finish.
After adding the rule, try your VPN again. You should see the connection succeed within a few seconds if this was the issue. If it still fails, move on to the next cause.
Also, if you're running a third-party firewall like Norton or McAfee, disable its firewall temporarily to test. I'm not saying keep it off, just test. If the VPN connects with that firewall off, you need to add the VPN client to its allowed programs list.
2. Preshared Key Mismatch or Wrong Authentication Method
The second most common cause is a simple config mismatch. You or your network admin typed the preshared key wrong, or the VPN server expects certificate authentication while your client is set to use a preshared key. This happens more than you'd think, especially after a password change on the server side.
You'll usually see this error right after you enter your credentials, and the log might show a message about IKE authentication failed if you dig through the event viewer.
How to fix it
- Open your VPN client's settings.
- Find the part that says Authentication or Security. It's usually under a tab called IPsec Settings or Advanced.
- Confirm that the preshared key exactly matches what your admin gave you. Watch for trailing spaces—they're invisible but they'll kill the negotiation.
- Check the authentication method dropdown. If your company uses certificates, select Certificate and make sure the correct certificate is installed in the Windows certificate store.
- If you're using a built-in Windows VPN (the one you set up in Settings > Network & Internet > VPN), go edit the connection and click Advanced options. There you'll see the preshared key field.
After you fix the key or switch the method, try to connect. The error should disappear if this was the root cause. But if you're still stuck, there's one more thing to check.
3. IKE Proposal Mismatch (Encryption or Integrity Algorithms)
Sometimes the problem isn't a firewall or a key—it's the negotiation parameters themselves. The client and server can't agree on which encryption algorithm to use (like AES vs 3DES), or which integrity algorithm (SHA1 vs SHA2). This is common when you connect to an older VPN server that only supports SHA1, but your Windows machine is set to prefer SHA2.
You'll see this error after a Windows update, because Microsoft changed the default proposal order. Windows 10 version 2004 and later, and all Windows 11 versions, use stronger algorithms by default. If your VPN server hasn't been updated, it can't keep up.
Change the IKE proposal order
There's a registry tweak that can force Windows to try the older algorithms first. Here's what I do:
- Press Win + R, type
regedit, and hit Enter. - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent. - Right-click on the right side, select New > DWORD (32-bit) Value.
- Name it
AssumeUDPEncapsulationand set its value to2. This helps if the server only supports UDP encapsulation, but it's worth trying. - Close Regedit and restart your computer.
That tweak doesn't always solve the proposal mismatch, but it's the one that works for the UDP-encapsulation issue. For the actual algorithm mismatch, you might need to update your VPN client or contact the admin to enable SHA256 on the server. If you're managing the server, go into the IPsec policy and add AES256 and SHA256 to the proposal list.
After a restart, try connecting again. If it still fails, look at the server's logs—they'll tell you exactly which proposal it rejected.
Quick Reference Table
| Cause | Fix | Time to Test |
|---|---|---|
| Firewall blocking UDP 500/4500 | Add inbound rules for those ports | Immediate |
| Wrong preshared key or auth method | Verify key, switch to certificate if needed | Immediate |
| IKE proposal mismatch | Registry tweak for encapsulation, update server | After restart |
That covers the top three things I've seen cause this error. Start with the firewall—it's the most common and the easiest to test. Then double-check your key, and if you're still stuck, mess with the registry tweak. You'll likely have your VPN back up in no time.