Skip to content

Free slots reset daily at 00:00 & 12:00 (GMT+0)

Protocols

Hysteria 2 and ZIVPN UDP explained: how UDP tunnels work

How Hysteria 2 and ZIVPN UDP work, why UDP tunnels cope better with weak mobile signals, what the port and obfuscation fields mean, and when TCP is better.

7 min read · Updated 17 Nov 20267 min readUpdated 17 November 2026
Mobile phone mast covered in white antenna panels against a clear blue sky
Photo: Edvin Gál on Pexels

By LitronSSHPublished 24 October 2026Updated 17 November 2026How we write and check our guides

Many tunnels on this site, such as SSH, SSH SSL and VMess, travel over TCP. Hysteria 2 and ZIVPN UDP are different: they carry your traffic over UDP. On a patchy mobile signal or a long-distance link, that difference can make a tunnel feel noticeably smoother.

This guide explains the difference, how to set up both, what their fields mean, and when a TCP-based protocol is still the better choice. Which protocols are offered at any time is shown in the list of services on the home page.

TCP and UDP in plain words

Everything you do online travels in small packets, sent in one of two basic ways:

  • TCP guarantees delivery in order. Every packet is numbered and acknowledged, and anything lost is sent again before the data behind it is handed over. Web pages, email and most apps use it.
  • UDP simply sends packets and leaves it to the program on top to deal with anything that goes missing. Voice and video calls, online games and live streams use it, because late data is often worse than missing data.

That freedom to handle loss in its own way is exactly what Hysteria 2 builds on.

Why UDP tunnels can feel faster on mobile

A TCP-based tunnel such as SSH carries all your connections inside one TCP connection. When a single packet is lost, everything inside the tunnel waits until it has been sent again, even data for a different app. On a clean line this rarely happens. On a weak mobile signal or busy public Wi-Fi, where packets go missing all the time, those waits add up to stalls.

TCP also reads lost packets as a sign that the network is overloaded, and slows down sharply. On mobile, loss is often caused by radio interference rather than overload, so slowing down just wastes the connection you have.

Hysteria 2 runs over QUIC, the transport behind HTTP/3. QUIC deals with lost packets itself, separately for each stream, so a missing packet only holds up the one connection it belonged to. Hysteria 2 also uses congestion control tuned for lossy networks, which keeps data flowing at a steady pace instead of backing off at every gap.

This is about coping with loss, not magic speed. On a strong, stable connection, SSH, VLESS and Hysteria 2 feel much the same, and the distance to the server matters more.

Hysteria 2: QUIC with a password

Hysteria 2 is an open-source proxy built on QUIC. QUIC always encrypts with TLS 1.3, so the tunnel between your device and the server is encrypted by design. Your app proves which account it belongs to with a password, which comes inside the share link.

When Hysteria 2 is listed, its accounts come with a hysteria2:// share link and a QR code. Apps that support it include:

  • Android: NekoBox, Hiddify and v2rayNG.
  • iPhone and iPad: Shadowrocket (paid) and Streisand.
  • Windows: v2rayN and Hiddify.
  • macOS: Hiddify. Linux: the official Hysteria 2 client or Hiddify.
  1. Create a Hysteria 2 account on a server near you and keep the result page open.
  2. Copy the Hysteria 2 link under Quick import, or show its QR code on another screen.
  3. In your app, add a profile by importing from the clipboard or scanning the QR code.
  4. Select the profile and connect. On a phone, allow the VPN permission prompt, which lets the app route your traffic through the tunnel.
  5. Open Check My IP to confirm that you are browsing through the server.
Some apps show upload and download speed fields for Hysteria. Leave them empty, or enter what your connection really manages. Setting them well above your real speed makes things worse.

ZIVPN UDP: a simple tunnel for one app

ZIVPN UDP is a UDP tunnel built on Hysteria and made for the ZIVPN Tunnel app on Android. There is no share link or QR code: you enter a few values from your account by hand. The result page lists them under Account details, each with its own copy button.

  1. Create a ZIVPN UDP account and keep the result page open.
  2. Open the ZIVPN app and add a new server.
  3. Enter the Server address and the Password exactly as the result page shows them.
  4. Enter the UDP port range exactly as shown, including the dash if it is a range.
  5. If your account shows an Obfuscation value and the app asks for one, enter it too. Then save and connect.

Use it on one device only: logging in from a second device usually disconnects the first, and an account used on several devices at once may be banned, shown as Banned on My accounts. Details are shown only once, so copy them or save the .txt file before leaving.

What the port and obfuscation fields mean

You rarely need to change any of these fields, but knowing what they do helps when something does not connect.

FieldWhat it means
ServerThe server's host name: where your app connects.
PortHysteria 2: the UDP port. It can be one number, a list, or a range written as two numbers with a dash; with a range, the app may move between ports during a session (port hopping).
UDP port rangeZIVPN: the UDP ports the server answers on. Enter the range exactly as shown.
PasswordYour account's secret. Hysteria 2 carries it inside the share link; ZIVPN needs it typed in.
Obfuscation and obfuscation passwordAn optional layer that scrambles every packet with a shared secret (for Hysteria 2 the type is called Salamander; ZIVPN shows a single Obfuscation value). If your account does not list these fields, leave the app's settings for them as they are; if it does, the app must use the same values.
SNIThe server name sent in the TLS handshake inside QUIC. Keep it as the server's host.
Allow insecure and certificate pinHow the app checks the server's certificate. A pin is the certificate's fingerprint. Keep both as the link sets them.
Obfuscation is not what keeps your data private: the TLS 1.3 encryption inside QUIC does that. Never switch on allow insecure yourself if your account says No: it turns off the check that you reached the real server.

When a TCP-based protocol is the better choice

UDP tunnels are not always the right tool. Pick SSH, SSH SSL or VMess instead when:

  • UDP does not get through well. Some networks drop or limit UDP traffic. If a UDP account will not connect or keeps dropping on a network where tunnels are allowed, a TCP protocol is usually more dependable there.
  • Your connection is already strong and stable. On good fibre or a strong signal there is little loss to cope with, so UDP gains you little.
  • Your device or app does not support it. ZIVPN UDP is for the Android app only, and on an iPhone Hysteria 2 needs an app such as Shadowrocket or Streisand.
Whichever protocol you use, follow your network's terms and the law, and keep to our acceptable use policy. If a network does not allow tunnels, do not use one there.

If it will not connect

  • Check that the account is still valid on My accounts. Expired or removed accounts stop working.
  • Check the server on server status.
  • Import or copy again instead of editing fields. A changed SNI, port or password breaks the connection.
  • Compare with another connection you normally use, such as home Wi-Fi instead of mobile data, to see whether UDP is the issue.

Still stuck? See Fix connection problems, or report a problem with the server name and time.

Try it with a free account

Choose a protocol, then a server near you. Your details are shown once, so save them before you leave the page.

Questions

Is Hysteria 2 encrypted?
Yes. QUIC always uses TLS 1.3, so the connection to the server is encrypted. An obfuscation password, when your account has one, is an extra layer, not the encryption itself.
Will a UDP tunnel lower my ping in games?
It can make play smoother when your connection loses packets, but it cannot shorten the distance. Your traffic now travels via the server, so pick one close to you or to the game server. Choose a server location explains how.
Can I use a ZIVPN account in a Hysteria 2 app, or the other way round?
No. Each account is created for one protocol on one server, and the two are set up differently: Hysteria 2 comes as a share link, while ZIVPN needs its fields typed into the ZIVPN app.