OpenVPN Port 1194: How to Open UDP Port and Fix Connection Issues

OpenVPN UDP port 1194 firewall configuration and port forwarding

OpenVPN uses UDP port 1194 by default in its standard server configuration. If your VPN clients cannot connect, the tunnel fails to establish, or you encounter TLS handshake timeouts, the problem may be related to firewall rules, router port forwarding, ISP restrictions or an incorrect server configuration.

Opening UDP port 1194 is usually straightforward, but several network components may need to be configured before an external client can reach your VPN server.

What you need to check:
  • OpenVPN is running and listening on UDP port 1194.
  • The server firewall allows incoming UDP traffic.
  • Your router forwards UDP 1194 to the correct internal IP address.
  • Your cloud firewall or security group allows the traffic.
  • Your ISP does not prevent inbound connections through CGNAT or filtering.

🔎 Test Port 1194 Connectivity

Use the MyIP.casa Port Checker to test whether TCP port 1194 is reachable from the Internet.

For troubleshooting, you can temporarily configure OpenVPN to use TCP port 1194 on both the server and client. If the TCP connection works but UDP does not, this may help identify a protocol-specific firewall or network restriction.

Test TCP Port 1194 →

Important: A successful TCP test does not confirm UDP connectivity. After testing, restore your OpenVPN configuration to UDP 1194 if that is your intended transport protocol.

What Is OpenVPN Port 1194 Used For?

Port 1194 is the official default port used by standard OpenVPN configurations. It is commonly configured to transport encrypted VPN traffic over UDP.

When an OpenVPN client connects, it sends packets to the server's public IP address or hostname on the configured port. The server processes the incoming traffic and establishes the encrypted VPN tunnel after successful negotiation.

Parameter Default configuration
Application OpenVPN
Port 1194
Protocol UDP
Transport security OpenVPN encryption and TLS authentication
Typical use Remote VPN client connections
Important: Port 1194 is a default, not a requirement. OpenVPN can use another port and protocol if both the server and clients are configured consistently.

UDP 1194 vs TCP 1194: Which Should You Use?

OpenVPN supports both UDP and TCP transport. However, the two protocols behave differently and must be configured consistently on both ends.

Feature UDP 1194 TCP 1194
Transport UDP TCP
Default in standard OpenVPN server examples Yes No
Connection handling Connectionless transport Reliable connection-oriented transport
Typical performance Usually preferred for VPN traffic Can introduce TCP-over-TCP performance issues
Firewall rule 1194/UDP 1194/TCP

UDP is generally recommended for OpenVPN because it avoids the additional retransmission and congestion-control mechanisms of TCP at the transport layer.

TCP can be useful when a network blocks UDP traffic. Some OpenVPN Access Server deployments also use TCP port 443 as an alternative connection method.

Do not mix protocols: If your server listens on UDP 1194, a client configured for TCP 1194 will not connect. The protocol, port and server address must match.
💡 Troubleshooting tip: If you suspect that UDP traffic is being blocked, temporarily testing TCP on the same port (1194) can help isolate the issue. Configure both the OpenVPN server and client to use TCP 1194, then check TCP reachability with an external port checker. If TCP works but UDP does not, investigate UDP-specific firewall rules, router forwarding or ISP restrictions. Remember to restore UDP 1194 after testing if UDP is your intended OpenVPN transport protocol.

Step 1 — Verify OpenVPN Is Running and Listening

Before changing firewall rules, make sure that the OpenVPN service is running and actually listening on port 1194.

Check the systemd service

On modern Linux installations using the OpenVPN systemd server template:

sudo systemctl status openvpn-server@server

The expected service state is:

Active: active (running)

If the service is stopped, start it:

sudo systemctl start openvpn-server@server

The exact service name depends on the distribution and installation method. Older installations may use different service units, so check your installed OpenVPN package if the command does not work.

Check whether UDP 1194 is listening

A running service does not necessarily mean that it is listening on the expected port. Run:

sudo ss -lunp | grep ':1194'

You should see a UDP socket associated with OpenVPN, for example:

UNCONN 0 0 0.0.0.0:1194 0.0.0.0:* users:(("openvpn",pid=1234,fd=6))

The exact output will vary depending on the operating system, process ID and listening interface.

What this confirms: OpenVPN has a UDP socket bound to port 1194. This confirms local listening, but does not prove that the port is reachable from the Internet.

If no result appears, check the OpenVPN configuration and service logs before investigating external firewall rules.

Step 2 — Verify OpenVPN Server Configuration

OpenVPN server configuration files are commonly stored in different locations depending on the installation.

For a modern systemd installation, the typical location is:

/etc/openvpn/server/server.conf

Older installations may use:

/etc/openvpn/server.conf

Open the appropriate configuration file and verify the following directives:

port 1194
proto udp

These directives tell OpenVPN to listen on UDP port 1194.

Using TCP instead

If you intentionally want to use TCP, configure the server and client accordingly. For example, a TCP server configuration can use:

port 1194
proto tcp-server

The client must then use the corresponding TCP client configuration.

Do not change the server protocol without updating the client configuration and the corresponding firewall and router rules.

Restart OpenVPN

After changing the configuration, restart the service:

sudo systemctl restart openvpn-server@server

Then verify its status again:

sudo systemctl status openvpn-server@server

Step 3 — Open UDP Port 1194 in Your Firewall

Even when OpenVPN is running correctly, the Linux firewall may block incoming connections. The following examples show how to allow UDP port 1194 on common Linux distributions.

Ubuntu / Debian with UFW

sudo ufw allow 1194/udp

Check the firewall rules:

sudo ufw status verbose

You should see a rule allowing UDP traffic on port 1194.

Rocky Linux / RHEL / CentOS with firewalld

sudo firewall-cmd \
--add-port=1194/udp \
--permanent

sudo firewall-cmd --reload

Verify the configuration:

sudo firewall-cmd --list-ports

Expected output should include:

1194/udp

iptables

On systems using iptables, you can add an INPUT rule:

sudo iptables -A INPUT \
-p udp \
--dport 1194 \
-j ACCEPT

Remember that this command may only create a temporary rule. Persistent firewall configuration depends on your distribution and firewall management system.

Security recommendation: Avoid opening unnecessary ports or disabling the firewall entirely to troubleshoot OpenVPN. Allow only the required protocol and port, and restrict the source IP addresses when your deployment permits it.

Step 4 — Configure Router Port Forwarding

If your OpenVPN server is hosted behind a home or office router, you must configure port forwarding. This tells the router where to send incoming Internet traffic destined for UDP port 1194.

Example network configuration:
Public Internet
      |
      |
Public IP address
      |
      |
Router / NAT Gateway
      |
      | UDP 1194
      v
192.168.1.50:1194
      |
      |
OpenVPN Server

Create a port forwarding rule with the following parameters:

Setting Value
External port 1194
Internal port 1194
Protocol UDP
Internal IP address 192.168.1.50
Destination OpenVPN server

Replace 192.168.1.50 with your server's actual LAN address.

It is also recommended to configure a DHCP reservation or static IP address for your OpenVPN server. Otherwise, the internal IP address may change and invalidate the forwarding rule.

Common router configuration mistakes

  • Forwarding TCP instead of UDP.
  • Forwarding traffic to the wrong internal IP address.
  • Configuring the rule on the wrong router.
  • Forgetting an upstream modem or secondary NAT gateway.
  • Using a server IP address that changes after a reboot.
Double NAT: If your network contains multiple routers, you may need to configure port forwarding on both devices, unless the upstream device is operating in bridge mode or has another suitable routing configuration.

Step 5 — Check for CGNAT or ISP Restrictions

One of the most common reasons why OpenVPN cannot be reached externally is that the Internet Service Provider uses Carrier-Grade NAT (CGNAT).

With CGNAT, multiple customers share a public IPv4 address. Your router may receive a private or shared address from the ISP instead of having a directly reachable public IPv4 address.

How to detect CGNAT

First, open your router administration interface and locate its WAN IPv4 address. Then compare it with the public IPv4 address displayed by an external IP detection service.

You can check your public IP address here:

🌍 Check Your Public IP Address

Compare your public IPv4 address with the WAN address assigned to your router.

Check My Public IP →

Pay particular attention to these address ranges:

IPv4 range Description
10.0.0.0/8 Private IPv4 address
172.16.0.0/12 Private IPv4 address
192.168.0.0/16 Private IPv4 address
100.64.0.0/10 Shared Address Space commonly used for CGNAT
Important: A WAN address in one of these ranges means that your router does not have a globally reachable IPv4 address directly assigned to that interface. However, a private WAN address can also indicate a second router or another upstream NAT device. The 100.64.0.0/10 range is specifically reserved for shared address space commonly used by service providers.

How to fix CGNAT issues

If your ISP uses CGNAT, normal port forwarding on your own router will not be sufficient to accept unsolicited inbound IPv4 connections from the Internet. Possible solutions include:

  • Request a public IPv4 address from your ISP.
  • Ask whether a dynamic or static public IPv4 option is available.
  • Use IPv6 if your ISP provides it and your server, firewall and clients support it.
  • Deploy your OpenVPN server on a public cloud VPS.
  • Use an appropriate VPN or tunneling solution that supports outbound connections through NAT.

Also ask your ISP whether it applies specific restrictions to inbound UDP traffic or VPN protocols.

Step 6 — Test UDP Port 1194 Connectivity

Testing UDP ports is different from testing TCP ports. TCP uses a connection handshake, so a remote scanner can often determine whether a TCP port is open by attempting to establish a connection. UDP is connectionless. A server may receive UDP packets without responding to an arbitrary probe.

Important distinction: A generic TCP port checker cannot confirm that UDP port 1194 is reachable. Likewise, an inconclusive UDP scan does not automatically mean that the port is blocked.

Method 1 — Verify the local UDP socket

On the OpenVPN server, execute:

sudo ss -lunp | grep ':1194'

This confirms whether a process is listening on UDP port 1194.

Method 2 — Capture incoming UDP packets with tcpdump

This is one of the most useful troubleshooting methods. Install tcpdump if necessary, then execute:

sudo tcpdump -ni any 'udp port 1194'

Keep the capture running and attempt to connect from an external OpenVPN client using a different network, such as a mobile connection.

Interpret the results:

Observation Possible explanation
UDP packets appear Traffic is reaching the server's network interface.
No packets appear Investigate router forwarding, upstream firewalls, CGNAT or ISP filtering.
Packets arrive but OpenVPN does not connect Investigate OpenVPN configuration, TLS authentication, certificates and server logs.

Method 3 — Check OpenVPN client logs

The client log can provide additional information about the connection attempt. Look for errors such as:

TLS Error:
TLS key negotiation failed to occur within 60 seconds

This usually indicates that the client did not receive the expected response during TLS negotiation. Network reachability should be investigated first, but the message alone does not prove that a firewall is responsible.

OpenVPN Port 1194 Not Working? Common Problems

If your OpenVPN server is still unreachable, use the following troubleshooting table to narrow down the problem.

Problem What to check
OpenVPN is not listening on 1194 Verify the configuration file, service status and listening socket.
UDP connection timeout Check firewall rules, router forwarding and upstream filtering.
TCP works but UDP fails Verify UDP-specific firewall and router rules.
Port forwarding does not work Check the destination IP, protocol and possible double NAT.
Public IP mismatch Investigate CGNAT or an upstream router.
TLS handshake failure Check connectivity, certificates, TLS keys and client/server configuration.
Clients cannot connect from one network Investigate filtering or restrictions on the client-side network.

Check whether the ISP blocks UDP 1194

Some networks restrict specific UDP traffic or VPN protocols. If your OpenVPN server works from one Internet connection but not another, compare the behavior using different external networks.

You can also test another UDP port by changing the server and client configuration together, provided that the new port is allowed by your firewall and router.

Changing the port does not bypass every type of filtering. Some networks identify VPN traffic independently of the destination port.

Debug OpenVPN Logs

If UDP packets reach the server but clients still cannot establish a VPN tunnel, inspect the OpenVPN logs.

Modern systemd installations

sudo journalctl -u openvpn-server@server -f

This displays new log messages in real time while a client attempts to connect.

Check the last 100 log entries

sudo journalctl -u openvpn-server@server -n 100

Common OpenVPN errors

1. TLS key negotiation failed
TLS Error:
TLS key negotiation failed to occur within 60 seconds

Possible causes include incorrect server address, missing port forwarding, blocked UDP traffic or TLS configuration problems.

2. Authentication or certificate errors

If packets reach OpenVPN but the connection fails during authentication, check the client certificates, certificate validity, TLS authentication keys and server/client configuration compatibility.

3. Address already in use

If OpenVPN cannot bind to UDP port 1194, another process or OpenVPN instance may already be using that socket. Check with:

sudo ss -lunp | grep ':1194'

Check VPN Visibility and Public IP Address

Once your OpenVPN connection works, it is important to verify that your traffic is actually routed through the VPN tunnel.

A successful VPN connection does not automatically guarantee that your public IP address has changed or that DNS requests are handled as expected.

🛡 Verify Your VPN Connection

Check your public IP address and investigate whether your VPN connection is correctly hiding your original public IP.

Run MyIP.casa VPN Check →

Frequently Asked Questions About OpenVPN Port 1194

What port does OpenVPN use by default?

Standard OpenVPN server configurations commonly use UDP port 1194 by default. However, OpenVPN can be configured to use other ports and protocols.

Is OpenVPN port 1194 UDP or TCP?

UDP 1194 is the traditional default for standard OpenVPN server configurations. TCP is also supported, but both the server and client must use matching transport settings.

How do I check if UDP port 1194 is open?

First, use ss -lunp to check whether OpenVPN is listening locally. Then use tcpdump to verify whether incoming UDP packets reach the server during an external connection attempt.

Why is OpenVPN not listening on port 1194?

Possible causes include an incorrect configuration file, a stopped service, a different configured port, an incorrect protocol or a conflict with another process.

Why does OpenVPN show a TLS handshake timeout?

A TLS handshake timeout often means that the client and server cannot successfully exchange the expected handshake packets. Check the server address, UDP port, firewall rules, router forwarding and TLS configuration.

Does CGNAT prevent OpenVPN port forwarding?

Yes, CGNAT generally prevents standard inbound IPv4 port forwarding from reaching your private network because the ISP controls the shared public address. You may need a public IPv4 address or another VPN connectivity solution.

Can an ISP block UDP port 1194?

Yes. Some ISPs and network administrators restrict certain UDP ports or VPN traffic. Testing from another network can help identify whether the restriction is specific to the ISP or client network.

Can I use TCP 443 instead of UDP 1194?

Yes. OpenVPN supports TCP and can be configured to use port 443. The server, client and firewall must all be configured consistently. This can help on networks that restrict UDP, although it does not guarantee that VPN traffic will be allowed.

Final OpenVPN Port 1194 Checklist

Before considering your OpenVPN server fully operational, verify each of the following points.

  • ✅ OpenVPN service is running.
  • ✅ OpenVPN is listening on UDP port 1194.
  • ✅ Server configuration uses the expected protocol and port.
  • ✅ Linux firewall allows incoming UDP 1194.
  • ✅ Router forwards UDP 1194 to the correct internal IP.
  • ✅ Cloud firewall or security group allows the traffic, if applicable.
  • ✅ No CGNAT or upstream NAT restriction prevents inbound connectivity.
  • ✅ Incoming packets are visible during an external connection attempt.
  • ✅ OpenVPN client and server configurations match.
  • ✅ VPN tunnel establishes successfully.

🚀 Troubleshoot Your Network

Having trouble accessing your OpenVPN server? Start by checking your public IP address and investigating possible port connectivity issues.

Open MyIP.casa Port Checker →

Official OpenVPN Documentation

For additional technical details and advanced configuration options, consult the official documentation: