Guide
What Is IKEv2? How the VPN Protocol Works, Where It Still Wins, and Its Limits
IKEv2 is the part of an IPsec VPN that sets up the connection. It checks who is on each end and agrees on the keys, and IPsec then encrypts your traffic with them.
It’s built into Windows, macOS, iOS and Android, and it keeps a VPN connected when your phone jumps from Wi-Fi to mobile data. Those two strengths kept it in VPN apps for years. They count for less in 2026: most apps now default to WireGuard or the provider’s own protocol, and several providers have dropped IKEv2 or are dropping it. It still has a job, mostly where you can’t or don’t want to install an app.
We rewrote this page in November 2026; the old version dated from 2024. Facts were checked on 16 November 2026.
What IKEv2 is, and why it's called IKEv2/IPsec
IKE stands for Internet Key Exchange. Version 2 was first published by the IETF in December 2005; the current standard is RFC 7296 from 2014.
On its own, IKEv2 carries none of your data. It runs the negotiation: which encryption to use, proof that the server is the real one and that you’re allowed in, and a fresh set of keys. Your traffic then travels in IPsec packets (called ESP), encrypted with those keys. If IKEv2 is the two sides agreeing on a lock and swapping keys, IPsec is the locked van that carries the goods.
That’s why you’ll see the double name IKEv2/IPsec. VPN apps and the Windows and Apple settings usually just say “IKEv2”; it’s the same thing.
The other IPsec pairing you may come across, L2TP/IPsec, uses the older IKEv1 plus an extra tunnelling layer, and it’s on its way out (our VPN protocols guide explains why). For IPsec itself, see what an IPsec VPN is.
How an IKEv2 connection is set up
A connection normally takes two round trips, four messages in all:
- IKE_SA_INIT. Your device and the server agree on algorithms, run a Diffie-Hellman key exchange and swap random numbers. Everything after this point is encrypted.
- IKE_AUTH. Both sides prove who they are, and the first tunnel for your data (a “Child SA”) is set up. The server usually proves itself with a certificate; you sign in with a username and password, a certificate of your own, or a pre-shared key.
From then on your traffic flows as ESP. The keys are replaced at intervals without dropping the connection.
Ports. IKE starts on UDP port 500. When a router doing NAT sits in between, which at home and on mobile networks is nearly always, both the IKE messages and your data move to UDP port 4500, with the ESP packets wrapped inside UDP. Without NAT, data travels as ESP (IP protocol 50), which isn’t a port at all. These numbers are fixed, and that matters later.
MOBIKE. This extension (RFC 4555) lets your device tell the server its address has changed. The tunnel survives a switch from Wi-Fi to 4G without a new handshake, which is how IKEv2 earned its name as the protocol for phones.
IKEv2 vs IKEv1, WireGuard and OpenVPN
IKEv1 dates from 1998. It needs more messages, got NAT traversal and roaming only as add-ons, and has an “aggressive mode” whose pre-shared keys can be cracked offline. A server that still offers only IKEv1 is overdue for an update.
WireGuard does what IKEv2 is praised for with far less code, and it also follows you when your address changes. It’s the default, or the base of the default, in most VPN apps now. Proton, which is removing IKEv2 from its Mac app, says “modern WireGuard-based protocols offer much better performance than IKEv2”.
OpenVPN is slower to connect and heavier, but it can run over TCP port 443, where it blends in better with ordinary web traffic. IKEv2 can’t move off its ports, so on networks that block VPNs, OpenVPN or an obfuscated protocol often gets through where IKEv2 doesn’t. More in OpenVPN UDP vs TCP.
You’ll still read that IKEv2 is “the fastest VPN protocol”. That line was written before WireGuard. For a side-by-side table and a pick for each situation, see our VPN protocols comparison.
Is IKEv2 secure?
Yes, when it’s set up with current algorithms: no practical attack on the protocol itself is known. The weak spots are around it.
Pre-shared keys. If a server signs in clients with a shared password (a PSK) instead of certificates, an attacker who manages one man-in-the-middle connection can guess that password offline, as fast as their hardware allows. Researchers from Ruhr University Bochum and the University of Opole showed this in 2018 for IKEv1 and IKEv2 (others had described it before). A long random PSK makes guessing hopeless; certificates avoid the problem.
Bugs in the software. Every VPN server has its IKEv2 code facing the internet, and that code has had serious flaws. In April 2026 Microsoft fixed CVE-2026-33824, a critical hole in the Windows IKE service that needed no login; in August, CISA listed it as exploited in real attacks. In September, strongSwan, the open-source IKEv2 software behind many Linux servers and routers, fixed a rekeying bug (version 6.1.0) that a signed-in peer could use to crash it and possibly run code. Flaws like these mostly put servers and VPN gateways at risk, not a laptop that only connects out. Update anyway.
Apple’s built-in client. Proton names “security concerns about Apple’s IKEv2 implementation” among its reasons for dropping IKEv2 on macOS, and says it can leak traffic that reveals your real IP address.
Quantum computers. A future quantum computer could break today’s key exchanges, and traffic recorded now could be decrypted then. IKEv2 has room for a fix: RFC 9370 (2023) lets a connection add extra key exchanges, and the standard for adding the post-quantum ML-KEM that way has been approved and is waiting for its RFC number. Apple says iOS 26 can already add ML-KEM key exchanges to IKEv2 connections. The VPN apps below that offer post-quantum protection do it on WireGuard or their own protocol, not on IKEv2.
Which VPN apps still offer IKEv2 in 2026
Every major system can connect over IKEv2 without an extra app: Windows, macOS, iOS and iPadOS, ChromeOS, and Android 11 and later. On phones that launched with Android 12 or later, it’s the only VPN type left in the built-in settings.
Inside VPN apps it’s a different story. IKEv2 hasn’t died; it has moved from the shop window to the back room.
If IKEv2 was one of your reasons for picking a VPN, check before you renew: PIA took it off iPhones this autumn, and Proton’s Mac app loses it by February 2027.
When to use IKEv2, and how to set it up without an app
IKEv2 makes sense when:
- You need a VPN on a device where you can’t or won’t install an app, such as a work laptop or a Chromebook. The built-in client does the job.
- Your company, or your own router, runs an IKEv2 server. Many business firewalls and some home routers do (see how to set up a VPN at home).
- Your VPN app offers it and WireGuard keeps failing on one particular network. It’s worth a try before you give up on that network.
Skip it on networks that filter VPN traffic. Fixed ports and a recognisable handshake make IKEv2 one of the easiest protocols to block, and it has no disguise mode. Use an app with an obfuscated protocol instead (VPN obfuscation explains the options).
Setting it up by hand. You need the server address, the server’s remote ID (often the same as the address) and your sign-in details from your provider or IT department; sometimes also a certificate to install first. NordVPN and Windscribe publish manual IKEv2 setups.
- Windows 10 and 11: Settings > Network & internet > VPN > Add VPN. Choose Windows (built-in) as the provider and IKEv2 as the VPN type, then fill in the server and sign-in details (Microsoft’s guide).
- Mac: System Settings > VPN > Add VPN Configuration > IKEv2.
- iPhone and iPad: Settings > General > VPN & Device Management > VPN > Add VPN Configuration, then Type > IKEv2.
- Android 11 and later: Settings > Network & internet > VPN, tap +, and pick the IKEv2/IPSec type your provider names (MSCHAPv2, PSK or RSA). Menu names vary between phone makers.
If it won’t connect, the network is most often blocking UDP ports 500 and 4500, or the remote ID or certificate doesn’t match what the server expects.
Frequently Asked Questions
Some people found answers to these questions helpful
What ports does IKEv2 use?
UDP 500 to start, and UDP 4500 once the two sides detect NAT between them, which is the usual case. Without NAT, the data travels as ESP (IP protocol 50). To let IKEv2 through a firewall, allow UDP 500 and 4500, plus ESP if there's no NAT.
Does ExpressVPN support IKEv2?
Only in its iPhone and iPad app. ExpressVPN removed IKEv2 from its Windows app in 2022, and its Mac and Android apps don't have it. The default setting, Automatic, usually connects with ExpressVPN's own Lightway protocol.
Is IKEv2 the same as IPsec?
No. IKEv2 negotiates the keys and settings; IPsec (ESP) encrypts and carries the data. A VPN needs both, which is why the pair is called IKEv2/IPsec, and why "IKEv2" in a VPN menu always means the two together.
Is IKEv2 better than WireGuard?
For most people, no. WireGuard handles network changes just as well, and VPN providers favour it for speed. IKEv2's real advantage is that it's already built into your device, so it works where you can't install a VPN app.
Can IKEv2 be blocked?
Yes, easily. It always uses the same UDP ports, and its handshake is easy to recognise, so a network that wants to stop VPNs can block it with a simple rule. If you need to get past blocking, use a protocol built to hide, such as an obfuscated mode in a VPN app.
What authentication does IKEv2 use?
The server normally proves its identity with a certificate. You sign in with a username and password (carried by EAP, often EAP-MSCHAPv2), with a certificate of your own, or with a pre-shared key. Certificates are the strongest option; a short pre-shared key is the weakest, because it can be guessed offline.
2 Comments
Charles
March 8, 2023 12:33 pm
This is an excellent IKEv2 review.
As an “EndUser” I can say I got it.
Express VPN de[ploys IKEv2 along with other protocols.
I choose IKEv2 for it’s supreme encryption abilities;
Best used while Banking, Making online purchases, creating a secure communication. Add PGP with that if you like.
As an endUser I trust the “WhiteHatter’s” to keep their watchful eyes on closed
source code.
In the 1980’s Microsoft added SQL Server to it;s operating systems.
I was using my favorite Windows ME. I had that OS rippin the internet.
During those years of the Microsoft SQLServer System, what no one knew was that SQL Server was Bill Gates “BackDoor” into any PC running windows, any time, anywhere, the whole wide internet world.
It was then a lovely group of Black Hat Hackers, verses it’s antithisis WhiteHat Hackers, well this black group was Black. “CultOfTheDeadCow’ A black hat hacker group located in New York City’s Harlem .
Those Black boys and girls discovered Bill Gates BackDoor, reversed engineered it, and saint a personal message to Bill Gates and his inner circle that was not nice . As the “CultOfDeadCow’ understood Federal law concerning Hacking at that time , you could enter anyones personal or corporate machine provided you did not change one iota of it’s OS nor anything else. You could leave a message on their “DeskTop”, which was what ” CDC” marvelously did.
HuRah “CDC”
Where are they today? find out if you live dangerously.
Deborah
September 25, 2022 6:13 pm
I barely understand any of this except the basic messages. . Thanks to this article I will turn on the VPN on my iPhone. Thank you!