November 14, 2026 · Protocols · About 8 min read

What Is the Hysteria2 Protocol? QUIC Transport, Features, and Use Cases

Learn how Hysteria2 uses QUIC and UDP, how its congestion control works, and what to expect on high-loss, high-latency links. Covers the fields to configure in Shadowrocket.

At a glance

If you already have a Hysteria2 configuration from your provider, first check whether your current network can reach the server's UDP port. Then verify the address, authentication, TLS, and any optional obfuscation settings in Shadowrocket. This guide separates transport, connectivity testing, and rule-based routing to help diagnose connection failures, freezes after connecting, and timeouts after switching networks.

How Hysteria2, QUIC, and UDP work together

Hysteria2 is a proxy protocol that uses QUIC to transfer data between the client and proxy server. QUIC packets are carried over UDP. Even when an app accesses a website over TCP, the connection between Shadowrocket and the Hysteria2 server still uses QUIC over UDP. The protocol used by the website and the transport used to reach the proxy server are separate matters.

UDP
Underlying transport between the client and Hysteria2 server
443/UDP
Common server listening port; use the port specified by your provider
TLS 1.3
Encryption and authentication built into the QUIC handshake

Key point: an open TCP port does not mean UDP is reachable

If HTTPS over TCP 443 works on the same host but Hysteria2 keeps timing out, first verify the actual UDP port, then retry the existing configuration on another network. Don't change the port to 443 or disable certificate verification based on that test.

UDP does not guarantee delivery or ordering. For data that needs reliable transport, QUIC acknowledges received packets and retransmits missing stream data when loss is detected. If one stream is waiting for missing data, data that has already arrived on another stream does not have to wait behind it. However, streams still share congestion control for the connection, so persistent congestion can slow them all down. UDP datagrams carried by the proxy do not become reliable streams; don't expect every lost datagram to be retransmitted automatically.

High packet loss, high latency, and congestion control

Hysteria2 can use different congestion control methods depending on its configuration. Its Brutal mode targets the configured bandwidth and uses receiver feedback to estimate packet loss and adjust the amount sent; it does not measure the link's real-time available bandwidth. Sporadic packet loss from wireless interference and queueing loss caused by an overloaded shared link can both appear as packet loss in tests, but they call for different bandwidth settings. Setting the target rate above the bottleneck capacity can add even more queueing delay and packet loss.

  • High latency but stable transport: QUIC combines transport and the TLS handshake, which can reduce round trips when establishing a connection, but it cannot shorten the physical link's round-trip time. Pages that depend on multiple sequential requests may still load slowly even if a single test succeeds.
  • Occasional packet loss with bandwidth to spare: Compare whether longer transfers are steadier and parallel requests still complete. The benefits of multiple streams may not be apparent if only one short request is slow.
  • Peak-hour congestion or saturated upload: If pages load normally when idle but latency rises and pages stall as soon as an upload starts, pause background syncing and uploads, then test again. Don't treat a higher configured bandwidth value as a way to speed things up.
  • UDP is unreachable: If the current network blocks UDP traffic to the destination port, changing throughput settings won't make the handshake succeed. Check network conditions and server status before assessing protocol performance.

Add a Hysteria2 server in Shadowrocket

Before adding a server manually, get the server address, port, and authentication details from your provider. The TLS name, obfuscation method, and obfuscation password depend on the server configuration; don't guess at missing values. For a managed configuration, get the subscription link from your provider. Don't include authentication details in public screenshots or troubleshooting notes.

  1. Choose the protocol

    On your iPhone or iPad, go to Home → + → Add Server → Type and select Hysteria2. If the configuration has already been imported, check the existing entry's protocol type first to avoid adding a duplicate.

  2. Enter the address and port

    Enter the server's domain name or IP address in Address, and the port specified by the server in Port. Enter the port as a number; don't paste a full subscription link into the server address field.

  3. Enter authentication details

    Enter the Hysteria2 authentication value provided by your provider in Password. Copy it exactly as given, without quotation marks. The authentication value and obfuscation password serve different purposes; don't mix them up.

  4. Check additional settings

    If your provider specifies an SNI, enter the TLS name they give you. When using an IP address, the certificate must still match the name used for TLS verification. If the server uses Salamander, both the obfuscation method and password must match. Leave obfuscation disabled if the server doesn't use it.

  5. Save and test

    Tap Save, return to Home, tap the dot to the left of the server to select it as the default, and turn on the connection switch. Use Connectivity Test to check connectivity, then open a familiar website that should go through the proxy.

How to tell a connection issue from a routing issue

A Connectivity Test result reflects one test only. It doesn't mean every website uses the same route, and it doesn't measure sustained throughput. If the test succeeds but an app still fails, first determine whether the proxy connection is unstable or whether the current Global Routing mode isn't sending that app's requests along the expected route.

  1. Change one variable at a time. Keep the server, port, and destination website the same. Test separately on Wi-Fi and cellular, noting whether the connection fails to establish, the request keeps waiting, or a transfer starts and then stops. If only one network fails, check that network's UDP reachability first.
  2. Test short requests and sustained transfers separately. Use the same website to check the initial response, then use the same large file to see whether a sustained transfer frequently stalls. Repeat each test several times to avoid mistaking DNS caching, site load, or a brief fluctuation for a protocol difference.
  3. Check Global Routing. Direct is not a useful way to check whether a request is going through the proxy. If the website works under Proxy but fails after switching back to Config, check whether an earlier rule matches the request and sends it to DIRECT, and where FINAL routes unmatched traffic. Restore your original mode when testing is done.

Hysteria2 FAQs

What if it works on Wi-Fi but keeps timing out on cellular?

First make sure Shadowrocket is allowed to use cellular data. Keep the server configuration unchanged, switch to cellular, then disconnect and reconnect. If it continues to fail only on cellular, give your provider the destination UDP port and the time of the failure to investigate. Don't change the port, SNI, and password all at once.

Will updating a subscription also update servers added manually?

Don't assume a manually added entry is a copy of a subscription entry. After updating, return to Home and check whether the selected server is from the subscription or was added separately. If you're still using a manual entry and your provider has changed the address, port, or authentication value, check that entry separately.

Why does a webpage freeze as soon as I start uploading, even though the test passes?

Pause sustained uploads such as cloud backups, then test the same website again. If it works after pausing, upload-side queueing is a likely cause. If your provider supplies bandwidth settings and the app allows you to change them, first check the upload/download direction and units. Change only one value at a time and keep the original value; don't assume the plan's advertised rate is reliably available bandwidth.

Download Shadowrocket and get started

Get Shadowrocket for iPhone and iPad from the App Store for a one-time $2.99 purchase. Check the App Store listing for system requirements. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free.

  • Developer: Shadow Launch Technology Limited
  • App ID: 932747118
Download Shadowrocket for free