Skip to content

How the Hiddify app picks a server

Many profiles have more than one server. As long as you don't pick one yourself on the proxies page, the app decides which server your traffic uses. Two settings in Settings → Routing control this:

Default proxyUse one server (the fastest, or the first), or spread the traffic over all of them.
Balancer strategyWhen the traffic is spread: which server each new connection goes to.

Two words used on this page

  • Ping is how long a server takes to answer, in milliseconds (ms). Lower is faster: 85 ms is quicker than 420 ms. The app measures it by itself every now and then.
  • A connection is one line of traffic between an app and a site. Opening one web page usually opens several connections at once.

Default proxy

Lowest pingAll traffic goes through one server: the fastest. The best choice for most people.
BalanceConnections are spread over all the servers, following the Balancer strategy.
First proxyAlways the first server of the profile, fast or not.

As soon as you pick a server yourself on the proxies page, that server is used and this setting waits in the background.

Lowest ping: calm, not jumpy

The fastest server can change from minute to minute. If the app moved your traffic at every small change, calls and downloads would keep breaking, so it only moves when it is really worth it.

In this example the profile has three servers, A, B and C:

Example
1Right after connecting, before the speed test:Athe first server in the list (it may not answer)
2The test showsA 520 msB 85 msBall traffic moves to the fastest
3LaterC 70 msBC is only a little faster: no switch
4B stops working:BCthe next one takes over at once
  • After a switch, the app stays on the new server for at least 30 seconds.
  • It switches only when another server is clearly faster: by more than 30 ms and more than 20%. If the server fails, it switches at once.
  • Connections that are already open stay on the server they started on.

Balancer strategy

When the Default proxy is Balance, the app does not send everything through one server: it spreads your connections over all the servers of the profile. The Balancer strategy decides which server each new connection goes to.

Think of a shop with three checkouts

Your servers are the checkouts and your connections are the customers.

  • Round robin sends the customers to the checkouts in turn: first, second, third, first again.
  • Consistent hash gives each family its own checkout, always the same one, today and tomorrow.
  • Sticky session sends each family to a random checkout the first time, and they keep going back to it until they leave the shop.

In the examples below the profile has three servers. The number is the server's ping: lower is faster.

A 85 msB 120 msC 190 ms
The three Balancer strategies: Round robin, Consistent hash and Sticky session The three Balancer strategies: Round robin, Consistent hash and Sticky session

Round robin: everyone takes a turn

Each new connection goes to the next server in line: A, then B, then C, then A again.

Example
1a.comAA's turn
2a.comBB's turn: the same site, now on another server
3b.comCC's turn
4c.comAback to A
5C gets very slow (420 ms):Cit is skipped until it is fast again
  • The turn moves on with each connection, not each click. One page opens several connections, so one page can go through several servers.
  • That is why some sites sign you out or show a captcha: they see your address change.
  • A server more than twice as slow as the fastest one is skipped, and it rejoins the turns once it is fast enough again.
  • Before the first speed test finishes, every server takes a turn, even one that may not answer.
  • Best for: spreading heavy traffic (downloads, many videos) over all your servers.

Consistent hash: each site has its own server

The name of the site decides its server. The same site always goes to the same server, even after you reconnect.

Example
1a.comAeach site has its own server
b.comB
c.comC
2b.comBagain and again, every time
3B goes down:b.comAfor now
4B is back:b.comBit returns to its own server
  • A "site" is its main domain: example.com also covers www.example.com and mail.example.com. A connection without a name goes by its IP address.
  • The name decides, not the speed, so a site may get a slower server (here c.com stays on C).
  • A site keeps its server as long as your list of servers stays the same; adding or removing a server can move some sites.
  • If its server goes down or becomes more than twice as slow as the fastest, the site uses another one for a while and comes back later.
  • Best for: sites you log in to (banks, email, social media), on every device and after every reconnect.

Sticky session: the first server sticks

The first time you open a site, it gets a random server, and it keeps that server until you disconnect.

Example
1a.comBfirst visit: picked at random
2a.comBthe site keeps its server
3B goes down:a.comCit moves to another one
4B is back:a.comCit stays where it is now
5You reconnect: every site gets a new random server.
  • A "site" means the same as in Consistent hash.
  • Unlike Consistent hash, a site that moved does not go back, and a reconnect forgets every pick.
  • Each device picks for itself: on another device that shares your connection, the same site may use another server.
  • The app remembers up to 1000 sites; past that, the oldest one is forgotten and gets a new pick.
  • A server more than twice as slow as the fastest counts as down.
  • Best for: logging in to sites, while still spreading different sites over different servers.

Which one should I choose?

Round robin Consistent hash Sticky session
One site, one server? No Yes Yes
After a reconnect — Same server New random server
When its server is back — Returns to it Stays where it is
Good for Heavy downloads Logins Logins, more mixing

In every strategy, connections that are already open stay on the server they started on (unless it goes down); only new connections follow the strategy. If sites keep signing you out or asking for a captcha, switch from Round robin to Consistent hash or Sticky session.


Last update: November 24, 2026

Comments