OpenVPN port

OpenVPN Port 1194: UDP, TCP 443 and How to Open It

OpenVPN uses UDP port 1194, the port IANA assigned to it, by default. It also runs over TCP, and TCP 443 is the usual choice where UDP is blocked. Access Server adds TCP 943 for its web interface. Behind CGNAT, a VPN with port forwarding opens the port; on restrictive Wi-Fi, NordVPN connects over TCP 443.

Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Default port
UDP 1194
Also common
TCP 443 and TCP 1194
IANA registration
1194, TCP and UDP
Access Server
UDP 1194, TCP 443, TCP 943
Fastest
UDP
Best through firewalls
TCP 443
Check port 1194 from outside

Last updated:

What port does OpenVPN use?

OpenVPN's default is UDP 1194. IANA registered port 1194 for OpenVPN over both TCP and UDP, and an OpenVPN server uses it unless the port and proto lines in its configuration say otherwise. Many servers and VPN providers also accept OpenVPN on TCP 443, so it works on networks that only allow web traffic.

OpenVPN ports in common software and services
Software or serviceVPN portGood to know
OpenVPN Community serverUDP 1194Set by port and proto in server.conf
OpenVPN Access ServerUDP 1194 and TCP 443Web interface on TCP 943 and 443
pfSense and OPNsenseUDP 1194Changed in the OpenVPN server settings
Synology VPN ServerUDP 1194Forward the port you set in VPN Server
PiVPNUDP 1194Chosen during installation
NordVPNUDP 1194 or TCP 443Pick UDP or TCP in the app
Private Internet AccessUDP 1197/1198, TCP 501/502Manual configs; the app offers more ports

UDP 1194 or TCP 443?

Start with UDP. OpenVPN was designed for it, and it gives the best speed, because a lost packet is simply resent by the connection inside the tunnel. Over TCP, both the tunnel and the traffic inside it retransmit, which slows things down on poor links.

Use TCP 443 when UDP does not get through. Hotel, office and public Wi-Fi almost always allow HTTPS's port. A server can offer both: run one OpenVPN instance on UDP 1194 and another on TCP 443, and list both in the client profile. The client tries them in order.

Diagram: an OpenVPN client tries UDP 1194 first and falls back to TCP 443 when the network blocks UDP

Client profile with a TCP 443 fallback

# client.ovpn: try UDP first, then TCP 443
remote vpn.example.com 1194 udp
remote vpn.example.com 443 tcp

How to change the OpenVPN port

  1. 1

    Edit the server configuration

    Set port and proto in server.conf, for example port 443 and proto tcp, then restart OpenVPN, for example sudo systemctl restart openvpn-server@server.

  2. 2

    Update every client profile

    Change the remote line to the same port and protocol, such as remote vpn.example.com 443 tcp.

  3. 3

    Update the firewall and router

    Allow the new port and protocol in the server's firewall and change the port forwarding rule to match.

Sharing TCP 443 with a website

If a web server already uses TCP 443 on the same machine, OpenVPN's port-share option lets both use it: OpenVPN keeps VPN connections and passes HTTPS requests to the web server on another port.

# server.conf
port 443
proto tcp
port-share 127.0.0.1 8443   # web server moved to 8443

OpenVPN Access Server

Set the VPN protocol and port numbers in the Admin Web UI's network settings. By default Access Server answers VPN clients on UDP 1194 and TCP 443, and serves its web interface on TCP 943 and 443.

SELinux

On RHEL, Fedora and Rocky Linux, label a non-default port before OpenVPN can listen on it: sudo semanage port -a -t openvpn_port_t -p udp 1195.

How to port forward an OpenVPN server

  1. 1

    Reserve the server's LAN IP

    Give the OpenVPN host a fixed address in your router's DHCP settings. If the router or firewall runs the OpenVPN server itself (ASUS, pfSense, OPNsense, Synology routers), it opens the port for you and you can skip to the last step.

  2. 2

    Forward the port with the right protocol

    Forward external UDP 1194 to the server's LAN IP on UDP 1194, or TCP if your server uses TCP. A UDP server ignores a TCP rule.

  3. 3

    Allow it in the server's firewall

    Ubuntu: sudo ufw allow 1194/udp. RHEL and Fedora: sudo firewall-cmd --permanent --add-service=openvpn then sudo firewall-cmd --reload. Windows: New-NetFirewallRule -DisplayName "OpenVPN" -Direction Inbound -Protocol UDP -LocalPort 1194 -Action Allow.

  4. 4

    Point clients at your public address

    Use your public IP or a dynamic DNS name in the remote line of every client profile.

  5. 5

    Connect from outside

    Connect from a phone on mobile data. The server log shows TLS: Initial packet from with the phone's IP when the port is reachable.

Testing the OpenVPN port

OpenVPN over TCP answers a normal connection, so the open port checker shows it as open. Over UDP, servers that use tls-auth or tls-crypt ignore packets without the key, so a UDP port check shows open or filtered; a real client connection is the reliable test.

"TLS key negotiation failed to occur within 60 seconds"

This OpenVPN error means the client's first packets never got an answer from the server. In almost every case the port is not reachable:

Causes of the TLS key negotiation error
CauseHow to spot itFix
Port not forwarded, or forwarded as TCP for a UDP serverNo Initial packet lines in the server logForward the exact port and protocol to the server
Server firewall blocks the portPackets reach the host but OpenVPN logs nothingAllow the port in ufw, firewalld or Windows Firewall
Client and server use different protocolsClient uses proto tcp, server proto udpMatch proto and the remote line
tls-auth or tls-crypt key mismatchServer log shows HMAC or tls-crypt errorsCopy the same key into the client profile
ISP uses CGNATRouter's WAN IP is in 100.64.0.0/10Run the CGNAT check; see the next section
The client's network blocks UDPWorks on mobile data, fails on that Wi-FiAdd a TCP 443 fallback

Hosting OpenVPN behind CGNAT

Behind CGNAT, which is standard on Starlink, 5G home internet and many fiber ISPs, no router rule can reach a home OpenVPN server. A VPN with port forwarding solves it: the server keeps an outbound connection to the VPN provider, and the provider forwards a port on its public IP to your server.

Ways to reach a home OpenVPN server behind CGNAT
OptionKeeps your own OpenVPN serverGood to know
VPN with port forwardingYesClients only change the remote line; 31-day money-back guarantee
Tailscale or ZeroTierNo, replaces itEvery device signs in to the mesh service
Your own VPS as a relayYesYou rent and maintain a server
Public IPv4 from the ISPYesOften a business plan; not on Starlink residential or most 5G plans

Set it up with PureVPN

PureVPN's Port Forwarding add-on lets you choose the ports, so you can open UDP 1194, or TCP 443 for clients on restrictive networks. Enable the port in the PureVPN Member Area, connect the OpenVPN host to a PureVPN server that supports port forwarding, and put the PureVPN IP in each client's remote line. A dedicated IP keeps that address the same every time.

Your OpenVPN tunnel then runs inside the PureVPN connection, so add tun-mtu 1400 to both server and clients if large transfers stall. See port forwarding behind CGNAT for how this compares with other VPNs.

  • Host OpenVPN behind CGNAT

    PureVPN + Port Forwarding

    • Open UDP 1194, TCP 443 or any port your server uses, up to 15 at a time.
    • Keep your own OpenVPN server and profiles; only the remote address changes.
    • Dedicated IP option, so client profiles never need updating.
    • 31-day money-back guarantee.
    Get PureVPN Port Forwarding

OpenVPN blocked on Wi-Fi? Connect over TCP 443

Restrictive networks drop UDP 1194, and some also use deep packet inspection to spot OpenVPN on any port. Two settings get you connected:

  • Switch the app to OpenVPN over TCP 443, or another TCP port it offers. That gets past networks that filter by port.
  • Turn on obfuscation, which disguises the VPN as ordinary HTTPS and also gets past deep packet inspection.
OpenVPN options for restrictive networks
VPNOpenVPN portsFor restrictive networks
NordVPNUDP 1194, TCP 443Obfuscated servers and the NordWhisper protocol
Private Internet AccessUDP 8080, 853, 123, 53; TCP 8443, 853, 443, 80Pick the remote port in the app
Proton VPNUDP and TCPStealth protocol, which looks like HTTPS
  • Best for restrictive networks

    NordVPN

    • OpenVPN over TCP 443 when UDP is blocked.
    • Obfuscated servers and NordWhisper make the VPN look like regular web traffic.
    • Apps for Windows, macOS, Linux, Android and iOS.
    • 30-day money-back guarantee.
    Get NordVPN
  • Choose your connection port

    Private Internet Access

    • Switch the remote port in the app, including TCP 443 and 80.
    • WireGuard and OpenVPN in every app.
    • Port forwarding on servers outside the US.
    • 30-day money-back guarantee.
    Get PIA

Is it safe to open the OpenVPN port?

  • Yes, with certificates and tls-crypt. With tls-crypt, the server ignores every packet without the shared key, so scanners see nothing and floods are dropped early.
  • Open only the VPN port. Keep Access Server's admin interface on TCP 943 reachable from addresses you trust.
  • Keep OpenVPN updated, and revoke certificates for devices you no longer use.
  • Scan your public IP with the port scanner to confirm nothing else is exposed.

OpenVPN port FAQ

What port does OpenVPN use?

UDP 1194 by default, the port IANA assigned to OpenVPN. Servers can use any port over UDP or TCP, and TCP 443 is the most common alternative.

Is OpenVPN port 1194 UDP or TCP?

Both. UDP is the default and the fastest. TCP, usually on port 443, gets through firewalls that block UDP.

Should I use port 1194 or 443 for OpenVPN?

Use UDP 1194 for speed, and offer TCP 443 as a fallback for clients on restrictive networks. Client profiles can list both, and OpenVPN tries them in order.

What ports does OpenVPN Access Server need?

UDP 1194 and TCP 443 for VPN clients, and TCP 943 for the web interface. TCP 945 is only used for clustering on versions before 3.0, and TCP 22 only if you manage the server over SSH.

Can OpenVPN and a web server share port 443?

Yes. In TCP mode, the port-share option hands HTTPS requests to the web server while OpenVPN keeps the VPN connections.

What does "TLS key negotiation failed to occur within 60 seconds" mean?

The client never heard back from the server. Usually the port is not forwarded, a firewall blocks it, the protocol does not match, or the tls-auth or tls-crypt key is wrong.

Do I need to open a port to use an OpenVPN client?

No. Clients only connect out. Only an OpenVPN server needs a forwarded port.

Why is OpenVPN not listening on port 1194?

Check that the service is running and read its log, then run sudo ss -tulpn | grep 1194. A typo in the port or proto line, another program on the port, or SELinux blocking a non-default port are the usual causes.

How do I check if the OpenVPN port is open?

For TCP, test the port with the open port checker. For UDP, connect a client from mobile data and look for TLS: Initial packet from in the server log.

Does OpenVPN use port 443?

It can. OpenVPN's default is UDP 1194, but many servers also listen on TCP 443, and OpenVPN Access Server uses TCP 443 by default alongside UDP 1194. TCP 443 gets through firewalls that block UDP.

What is port 1194 used for?

Port 1194 is the IANA-registered port for OpenVPN, over UDP by default and also over TCP. If it is open on a server, an OpenVPN server is usually listening there.

References