What Is The Difference Between OpenVPN and Open Connect?

By Updated First published 10 min read

Contents
  1. How does OpenConnect VPN work?
  2. Is OpenConnect safe to use?
  3. How does Open VPN work?
  4. What are the main differences between OpenVPN open source and OpenVPN access source?
  5. OpenVPN vs OpenConnect at a glance
  6. UDP and TCP: the biggest practical difference
  7. On networks that only allow web traffic
  8. Speed
  9. On a phone: switching networks and battery
  10. Which one should you use?
  11. VPN protocols in HelloVPN
  12. Frequently asked questions
  13. Conclusion

OpenVPN and OpenConnect are two different VPN protocols that offer different features to their users. OpenVPN is a general-purpose protocol that runs over either UDP or TCP, and you pick one. OpenConnect starts as a normal HTTPS connection on TCP port 443, then moves your data to UDP when it can and falls back to TCP on its own when it can't. Both use the same kind of modern encryption, so the real differences are in how they connect, how they cope with strict networks and how they behave on a phone.

The decision between which one to use depends on your needs as an individual or your company's needs: the devices you use, the networks you connect from and how much setup you want to do. The benefits of using either one are pretty similar: they both encrypt your connection and hide your real IP address from the sites you visit.

Download HelloVPN

Index

1-How does OpenConnect VPN work?
2-Is OpenConnect safe to use?
3-How does Open VPN work?
4-What are the main differences between OpenVPN open source and OpenVPN access source?
5-OpenVPN vs OpenConnect at a glance
6-UDP and TCP: the biggest practical difference
7-On networks that only allow web traffic
8-Speed
9-On a phone: switching networks and battery
10-Which one should you use?
11-VPN protocols in HelloVPN
12-Frequently asked questions

How does OpenConnect VPN work?

OpenConnect is an open-source VPN client and protocol for remote access, the kind companies use to let staff connect to the office network. It started in 2008, when David Woodhouse wrote an open-source client that could talk to Cisco's AnyConnect VPN. A few years later Nikos Mavrogiannopoulos wrote ocserv, the OpenConnect server, so an OpenConnect VPN no longer needs Cisco hardware on the other end and can be fully open source on both sides.

OpenConnect is easiest to understand as "a VPN that starts life as a website visit":

  1. Sign-in over HTTPS. The client opens a normal TLS connection to the server on TCP port 443 and signs in with ordinary HTTPS requests. Passwords, certificates and one-time codes are all supported.
  2. A tunnel over that TLS connection. Once signed in, the server hands back a session cookie and the same TLS connection becomes a tunnel that can already carry your traffic.
  3. A faster data channel over UDP. The client then tries to open a second channel using DTLS, which is TLS adapted for UDP. If it works, your data moves there and the TCP connection stays open for control messages.
  4. Automatic fallback. If UDP doesn't get through, nothing breaks. Your data simply keeps using the TLS connection over TCP.

Encryption is whatever the two sides negotiate through TLS and DTLS, typically AES-GCM or ChaCha20-Poly1305. OpenConnect only tunnels IP packets; there is no Ethernet-bridging mode.

Is OpenConnect safe to use?

Yes, when it's kept up to date. Like most networking software, OpenConnect has had security bugs found and fixed over the years, so the version you run matters more than the protocol itself.

OpenConnect uses standard TLS and DTLS more or less as designed, so it inherits their strengths and also depends on the TLS library underneath being patched. Its many sign-in methods, including one-time codes, are a real advantage for organisations. HelloVPN offers OpenConnect as one of its protocols, alongside options built for speed and for networks that block VPNs.

How does Open VPN work?

OpenVPN is an open-source VPN protocol and program, first released by James Yonan in 2001, that builds a secure "tunnel" between the VPN client and server. It uses the OpenSSL library for its encryption and runs over either UDP or TCP. For most of the 2000s and 2010s it was the default choice for consumer VPN services and company networks, and it still runs almost everywhere: Windows, macOS, Linux, iOS, Android and routers.

A session has two parts that share one connection:

  • The control channel sets things up. It runs a TLS handshake, checks certificates and agrees on keys. This TLS session is wrapped inside OpenVPN's own packets, and OpenVPN adds its own reliability layer so the handshake works even over UDP.
  • The data channel carries your actual traffic, encrypted with keys from the control channel, typically using AES-256-GCM or ChaCha20-Poly1305.

UDP is the default, on the officially registered port 1194, but OpenVPN can listen on any port, including TCP 443. It's set up with a text file, usually ending in .ovpn, that lists the server, the port and the certificates. Options called tls-auth and tls-crypt add a shared key around the handshake, so the server ignores packets from anyone who doesn't have it.

Download HelloVPN

What are the main differences between OpenVPN open source and OpenVPN access source?

"OpenVPN access source" usually means OpenVPN Access Server. The open-source community edition is free software, released under the GPL. You install it yourself, write the configuration files and manage certificates by hand. Access Server is a commercial product from OpenVPN Inc., the company behind the project. It's built on the same protocol but adds a web admin panel, user management and ready-made client profiles, and it's licensed by the number of simultaneous connections. Both speak the same OpenVPN protocol, so the security of the tunnel is the same; what you pay for is easier management.

OpenConnect plays a similar role on its side: it's an open-source alternative to Cisco AnyConnect. The OpenConnect client and the ocserv server don't need any proprietary software, and they're compatible with AnyConnect clients and servers.

OpenVPN vs OpenConnect at a glance

OpenVPNOpenConnect
OriginIndependent project, 2001Client for Cisco AnyConnect, 2008; own server (ocserv) later
Built onTLS for the control channel, inside its own packet formatStandard HTTPS/TLS, plus DTLS for data
TransportUDP or TCP, chosen per connectionTCP for sign-in and control; UDP for data, with automatic TCP fallback
Usual port1194; can be set to any port, including 443443
Data encryptionTypically AES-256-GCM or ChaCha20-Poly1305Negotiated through TLS/DTLS (e.g. AES-GCM, ChaCha20-Poly1305)
Sign-inCertificates, optional username and passwordPassword, certificate, one-time code and more, over HTTPS
Tunnel typeIP (tun) or Ethernet (tap)IP only
SetupConfig file plus certificatesServer address plus sign-in
Networks that only allow web trafficWorks in TCP 443 mode, but isn't a real HTTPS sessionStrong: it is a real HTTPS session on 443
Best forWide device support, flexible custom setupsStrict networks; company-style sign-in

UDP and TCP: the biggest practical difference

Both protocols prefer UDP for your data, and for the same reason. The traffic inside a VPN tunnel is mostly TCP already, and TCP resends lost packets by itself. Put that inside another TCP connection and you have two layers each trying to repair the same loss. On a weak connection they get in each other's way and everything slows down. This is often called the TCP-over-TCP problem.

Where the two differ is in how they choose:

  • OpenVPN makes it a setting. A connection is either UDP or TCP. A client can be given a list of servers to try in order, for example UDP first and TCP 443 second, but each attempt is a fresh connection.
  • OpenConnect does both at once. The TCP connection is always there, the UDP channel is added when possible, and the switch between them happens without you doing anything.

On networks that only allow web traffic

Some hotel, airport, office and campus Wi-Fi networks only let normal web traffic through. In practice that means TCP on ports 80 and 443, and sometimes nothing over UDP at all.

OpenVPN on its default UDP port usually won't connect on a network like that. Run it on TCP 443 and it often will, because the network sees a connection to the port websites use. The catch is that OpenVPN's packets on that port are still in OpenVPN's own format, not a standard HTTPS connection, so some strict networks still won't let it through.

OpenConnect has the easier time here. Its first connection is a genuine HTTPS exchange on 443, the same kind a browser makes, and it can carry everything over that connection if UDP is closed. That is the main reason people pick it for networks where other protocols have trouble connecting.

Speed

There's no fixed winner, and anyone quoting a single number is measuring one setup. A few things are reliably true:

  • Over UDP, both are comfortably fast enough for browsing, video and calls. Over TCP, both slow down on lossy connections for the reason above.
  • Classic OpenVPN copies every packet between the kernel and a single-threaded user-space program, which costs some speed on fast links. Newer versions can move the data channel into the kernel (Data Channel Offload), which helps a lot where it's available.
  • The OpenConnect client and ocserv also do their work in user space, so they pay a similar cost.
  • Neither is as light as a protocol built for speed from the start. If raw speed is your priority, our OpenConnect vs WireGuard comparison covers that side.

On a phone: switching networks and battery

Neither protocol was designed for a device that hops between Wi-Fi and mobile data many times a day, so both have to recover when the network changes. OpenVPN notices the drop through its keepalive pings and reconnects with a new handshake. OpenConnect has to open its TLS connection again too, but it can usually present its session cookie instead of making you sign in again. In both cases expect a short pause, not a seamless handover.

Both send regular keepalive packets to hold the session open, so battery use is moderate for either one. It's rarely the deciding factor between them.

Which one should you use?

  • Choose OpenVPN if you're setting up your own VPN on a router or server, need something that runs on nearly any device, or need layer 2 bridging. It's the most widely supported option and the easiest to find documentation for.
  • Choose OpenConnect if you're often on Wi-Fi that only allows web traffic, if you want the UDP-to-TCP fallback handled for you, or if your workplace runs an AnyConnect-compatible server.
  • Just want a VPN that works on your phone? You don't need to pick between these two by hand. Use your app's automatic setting and change protocols only when a network gives you trouble.

Whichever you use, the protocol protects the path between your device and the VPN server. That keeps your traffic private from other people on the same Wi-Fi and from your internet provider, which is the point of using a VPN on public Wi-Fi. It doesn't make you anonymous to the sites you sign in to, and it won't stop phishing or malware. Our guide to which attacks a VPN protects against goes through the limits.

VPN protocols in HelloVPN

HelloVPN offers OpenConnect along with WireGuard, HelloWG, VLESS (with Reality) and IKEv2, on both iOS and Android. The Auto option picks a protocol for you. If a network gives you trouble, open the app's protocol settings and try a different one. OpenConnect is a good one to try on Wi-Fi that only allows web traffic.

To see how the other options compare, read VLESS vs WireGuard and HelloWG vs WireGuard. For the bigger picture, the history of VPN shows how these protocols fit into the story.

Frequently asked questions

Is OpenConnect the same as OpenVPN?

No. They are separate projects with different protocols, and they can't connect to each other's servers. OpenVPN uses its own packet format over UDP or TCP. OpenConnect uses HTTPS on TCP port 443 for sign-in and control, and DTLS over UDP for data.

OpenVPN TCP vs UDP: which should you use?

UDP first. It's faster and handles packet loss better, because it avoids running TCP inside TCP. Switch to TCP, usually on port 443, only when UDP won't connect on the network you're on.

Is OpenVPN safe?

Yes, when it's a current version with modern settings. It's open source, has been independently audited, and uses well-studied cryptography. Problems usually come from old configurations, not from the protocol's design.

Does OpenConnect use TCP or UDP?

Both. Sign-in and control run over TLS on TCP, normally port 443. Your data goes over UDP using DTLS when that's available, and over the TCP connection when it isn't.

What is ocserv?

ocserv is the open-source OpenConnect VPN server. It speaks the same protocol as the OpenConnect client and is compatible with AnyConnect clients, so an OpenConnect VPN can run without any proprietary software.

Conclusion

OpenVPN and OpenConnect both protect your connection well. OpenVPN is the flexible, run-anywhere option; OpenConnect is the one that copes best with networks that only let web traffic through. If you just want a VPN that picks the right protocol for you on iPhone or Android, try HelloVPN free for 3 days: download HelloVPN here.

“OpenVPN” is a registered trademark of OpenVPN Inc.

“WireGuard” is a registered trademark of Jason A. Donenfeld.