hiddify.st
EN

TopicRouting

Many servers: how connections are shared

On Hiddify 5.9's routing page, Default proxy decides which server is used before you pick one, and Balancer strategy decides how several servers share connections. This article compares the options, explains which sites break when your IP keeps changing, and suggests combinations.

Checked on

An old pair of scales: a balancer decides which side each connection goes on
An old pair of scales: a balancer decides which side each connection goes on PattayaPatrol, CC BY-SA 4.0

A subscription has dozens of servers. Which one gets each page request and each connection? Most people would say “the fastest, automatically”. Hiddify 5.9 splits this into two options in the lower part of Settings → Routing: default proxy and balancer strategy.

Load balancing sounds like “more is faster”, but it is really a rule for handing out work: it decides who gets each connection. Choose the wrong rule and speed does not necessarily improve, while logins and payments may break first. Below, the two options are explained first, then the sites that suffer most when your exit IP keeps changing.

Default proxy: who is used before you choose

Every option on screen has a description that begins “Until you pick a proxy”:

Default proxyDescriptionEffect
Lowest pingThe fastest one is usedSame as Auto in older versions
BalanceConnections are spread over all of themSeveral servers work together
First proxyThe profile's first one is usedUseful when the provider puts its recommended server first

Once you tap a server on the proxies page, your choice applies and this option no longer does.

A row of toll booth lanes on a highway: balancing means sending cars to different gates
A row of toll booth lanes on a highway: balancing means sending cars to different gates Ian S, CC BY-SA 2.0

Balancer strategy: how the spreading works

With Balance selected, the balancer strategy sets the rule:

StrategyScreen descriptionIP sites see
Round robinEach connection uses the next serverChanges often
Consistent hashEach site always uses the same serverSame for each site
Sticky sessionEach site keeps a random server until you reconnectSame during this connection

An example: three servers A, B and C, and you open three pages of site X and then three pages of site Y.

StrategySite XSite Y
Round robinA, B, CA, B, C
Consistent hashAlways BAlways A
Sticky sessionC this timeC or another this time

Consistent hash works out a fixed server from the site's name, the same today and tomorrow; sticky session assigns one at random and may change after you reconnect.

Sites that break when your IP changes

Round robin looks the most “balanced”, but for many sites it is a disaster:

  • Logins: some sites tie a login to an IP and ask you to sign in again, or trigger risk controls, when it changes.
  • Banks and payments: an IP jumping between countries may simply freeze the operation.
  • Captchas: requests for one page from different IPs make the captcha keep coming back.
  • Streaming: the page and the video stream leave from IPs in different countries, and you get “not available in your region”.

So round robin suits only things like large downloads where identity does not matter; for everyday browsing, consistent hash or sticky session is safer.

A hotel revolving door: round robin is everyone entering through the next compartment
A hotel revolving door: round robin is everyone entering through the next compartment W.carter, CC BY-SA 4.0

Can balancing double your speed

Partly. With several downloads or videos at once, connections go to different servers and total bandwidth may well grow. But one connection, such as a single video stream, always uses one server, and its speed does not add up. If you are one person browsing, balancing helps little and makes problems harder to trace, because when something fails you do not know which server it was.

Common combinations

Your situationDefault proxyBalancer strategy
One person, everyday useLowest pingLeave it
Several home devices sharing one connectionBalanceConsistent hash
Bulk downloads, no loginsBalanceRound robin
Provider asks you to use its first serverFirst proxyLeave it
Logging in to many sitesLowest ping or BalanceConsistent hash

Checking that it works

Once connected, the top of the proxies page shows the current exit's IP address, country and organisation. Open a few sites in turn and come back to look. With round robin you can also refresh an IP lookup site several times; the IP should change between servers.

How it relates to Auto on the proxies page

Many people mix up default proxy with Auto at the top of the proxies page. Think of it this way: if you tap a particular server on the proxies page, you have chosen by hand, and neither option applies; only when you tap Auto again, or never chose at all, does default proxy decide. And only when default proxy is set to Balance does balancer strategy come into play.

In other words, the three layers give way from the top down: your manual choice first, then default proxy, and balancer strategy last. When tracking down “why does my IP keep changing”, check whether a server is selected by hand on the proxies page, then whether default proxy is Balance, and finally whether the strategy is round robin. Going layer by layer, you find the cause quickly.

One detail is easy to miss: balancer strategy affects only new connections. Pages already open and files already downloading keep using their original server until the connection ends. So after changing the strategy, disconnect and reconnect once, then open a few sites to watch; do not judge the new strategy by old pages that are still open.

With Balance on, can I still choose a server on the proxies page?

Yes. Select one and it is used permanently while default proxy and balancer strategy step aside; tap Auto to restore them.

Can consistent hash put every site on the same server?

With many sites they spread fairly evenly. With few sites they may happen to cluster on one or two servers; that is normal.

Do I need to reconnect after changing strategy?

Yes. Routing settings take effect on the next connection.

Is load balancing worth it with only a few servers?

Not really. With two or three servers there is little bandwidth to share out, and the exit IP becomes unstable; lowest ping is less hassle.