TCP or UDP - GL.iNet Router Docs 4 (2026)

GL.iNet router's OpenVPN Server supports both TCP and UDP protocols. What's the difference?

TCP is more reliable, but less speed. UDP is faster but less reliable.

If you need a fast and constant data transmission for an application to work properly, UDP is a better choice. Otherwise, TCP is a stable and reliable protocol for transferring data and not losing any of it along the way. UDP is more suitable for gaming, streaming or using VoIP services. TCP is more suitable for emailing, web browsing and file transfer.

We recommend trying the UDP protocol first and only switching to TCP if you experience any issues.

Still have questions? Visit our Community Forum.

TCP or UDP - GL.iNet Router Docs 4 (2026)

FAQs

Should I use UDP or TCP for router? ›

TCP is more reliable, but less speed. UDP is faster but less reliable. If you need a fast and constant data transmission for an application to work properly, UDP is a better choice. Otherwise, TCP is a stable and reliable protocol for transferring data and not losing any of it along the way.

What does OpenVPN TCP mean? ›

The two modes OpenVPN offers

On the more user-oriented and less head-ache-inducing side, OpenVPN operates in two modes: OpenVPN UDP (User Datagram Protocol) and OpenVPN TCP (Transmission Control Protocol). Those are two of the bedrock protocols (yes) of the internet.

How to set up TCP and UDP? ›

Opening TCP/UDP port
  1. Locate your router's IP address.
  2. Head over to your router's settings.
  3. Enter your credentials (username and password).
  4. Look around for the Port Forwarding tab.
  5. Open your preferred port—for example, type 8080 to open port 8080.
  6. Save your settings.
Jan 14, 2021

What is UDP vs TCP IP address? ›

The main difference between TCP (transmission control protocol) and UDP (user datagram protocol) is that TCP is a connection-based protocol and UDP is connectionless. While TCP is more reliable, it transfers data more slowly. UDP is less reliable but works more quickly.

Which is safer TCP or UDP? ›

TCP only transmits complete sets of data packets, while UDP transmits whatever it can, even if some packets are lost along the way. Security. TCP transmissions are generally easier to keep secure than those sent via UDP.

Should I use UDP or TCP for streaming VPN? ›

UDP is mainly used for online streaming and downloading. TCP is more reliable but also slightly slower than UDP and is mainly used for web browsing.

Is OpenVPN TCP or UDP faster? ›

OpenVPN allows you to choose between TCP or UDP for your VPN connection. OpenVPN's default is to use UDP simply because it is faster. Our smart protocol selection feature will always attempt to establish a connection using UDP first.

What is the best TCP port for OpenVPN? ›

The most common VPN ports include 1194 for OpenVPN UDP and TCP port 443, 500 for IPsec/IKEv2, and 1723 for PPTP.

What is UDP used for? ›

User Datagram Protocol (UDP) refers to a protocol used for communication throughout the internet. It is specifically chosen for time-sensitive applications like gaming, playing videos, or Domain Name System (DNS) lookups.

Can you have both TCP and UDP? ›

Yes, TCP and UDP can be integrated in the same application. This can be done through the use of sockets, which allow for communication between two computers. Socket programming allows for the exchange of data between a server and a client, regardless of the protocol being used.

What is TCP and UDP for beginners? ›

TCP is connection-oriented which means it will “setup” a connection and then start transferring data. UDP is connectionless, which means it will just start sending and doesn't care if it arrives or not. The connection that TCP will set up is called the “3-way handshake,” which I will show you in a minute.

How do I unblock a port on my router? ›

How to open ports on a router
  1. Access your router's web interface. Navigate to your router's configuration page by typing the router's IP address into your browser.
  2. Log in to your router. ...
  3. Find the port forwarding section. ...
  4. Add a new port forwarding rule. ...
  5. Save the changes.
Jun 19, 2023

Does a UDP connection need a IP address? ›

UDP uses IP to get a datagram from one computer to another. UDP gathers data in a UDP packet and adds its own header information to the packet. This data consists of the source and destination ports on which to communicate, the packet length and a checksum.

Who is responsible for the reliability of UDP packets? ›

The idea is, the sender sends all packets as normal UDP packets and the receiver indexes all the packets. Once all the packets are transmitted, the receiver sends a lists of packet indexes that it did not receive. This can make UDP reliable.

Which applications use the UDP protocol? ›

Numerous key Internet applications use UDP, including: the Domain Name System (DNS), the Simple Network Management Protocol (SNMP), the Routing Information Protocol (RIP) and the Dynamic Host Configuration Protocol (DHCP). Voice and video traffic is generally transmitted using UDP.

When should I use UDP instead of TCP? ›

Typically, applications that transfer data files will use TCP since the protocol's latency and performance issues are not that critical. UDP benefits applications that need to receive data quickly even if accuracy suffers. This is why real-time applications like audio and video streaming will often use UDP.

Should DNS use TCP or UDP? ›

DNS has always been designed to use both UDP and TCP port 53 from the start 1 , with UDP being the default, and fall back to using TCP when it is unable to communicate on UDP, typically when the packet size is too large to push through in a single UDP packet.

Should I use TCP or UDP for gaming? ›

The advantage of UDP over TCP in the context of a game is you want to be moving the gameplay forward at all times. With TCP if there is a problem in the delevery of a packet the TCP stack will hold things up and retry the missing packet which will cause your game to pause.

Is UDP or TCP better for private Internet access? ›

TCP is excellent for secure email, sensitive account access, and browsing because it offers stability and reliability. UDP is best for VOIP services, most streaming applications, and gaming because it's fast and efficient.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6055

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.