Skip to content

How to use UDP Turn Relay

Recently, a feature called UDP Turn Relay is used in messengers to bypass filtering. That is, in this case, messengers are used as intermediate servers (relay) and traffic is sent to the main server through them. This can be used for messengers that are active inside Iran and support this protocol, or for foreign messengers that are not filtered. The diagram of free internet connection in this case is as follows.

![UDP Turn Relay_en](

Note that this feature only works for configurations that are on the UDP protocol. This means that this feature can be used on Hysteria2 or TUIC v5, but it cannot be used for reality.

To use it, just put the parameters of that messenger at the end of your config link according to the command below.


Where user is the username to connect to the protocol in the desired messenger. pass is also the password for this account in that messenger. Also, host is the host-name for connecting to the messenger, and port is the port for connecting to the messenger. The realm parameter is related to the authentication area inside the host-name. That is, which area of the messenger can be authenticated with this account.

For example, in Bale messenger (an Iranian Messenger), these parameters are as follows.


First, you convert this information to UTF-8 using an Encoder. For example, you can use this Encoder, the output of which is as follows:

Now if we have a hysteria configuration based on UDP as follows:


Finally, we add the encoded information related to the relay (messenger) at the end of the hysteria link. For this, we first put an & and copy the link exactly before # as below:


You can import this link in the Hiddify-Next program and because this program supports the UDP Turn Relay protocol, you can use this feature.

Note: Bale messenger disabled the said feature after a short time. Based on the contents explained above, you should find a messenger that supports this feature from the list of internal messengers of Iran or non-filtered external messengers.

Last update: April 17, 2024