Skip to content

Commit 33f3c79

Browse files
committed
Fix README: Telegram uses ~3 TCP conns per device, not 1
1 parent 9844416 commit 33f3c79

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ Fine-grained limits enforced at the engine level:
103103

104104
| Limit | Description | Example | Best For |
105105
|-------|-------------|---------|----------|
106-
| **Max Connections** | Concurrent connections (1 app = 1 conn) | `3` | **Device limiting** |
106+
| **Max Connections** | Concurrent TCP connections (~3 per device) | `15` | **Device limiting** |
107107
| **Max IPs** | Unique IP addresses allowed | `5` | Anti-sharing / abuse |
108108
| **Data Quota** | Lifetime bandwidth cap | `10G`, `500M` | Fair usage |
109109
| **Expiry Date** | Auto-disable after date | `2026-12-31` | Temporary access |
110110

111-
> **Tip: Use `conns` for device limits, not `ips`.** Each Telegram app opens exactly 1 connection (multiplexed internally), so `conns 3` = max 3 devices. IP limits are less reliable because mobile users roam between cell towers (briefly showing 2 IPs for 1 device), and multiple devices behind the same WiFi share 1 IP. Use `ips` as a secondary anti-sharing measure.
111+
> **Tip:** Each Telegram app opens **~3 TCP connections** (one per DC). So for device limiting, multiply by 3: `conns 15` max 5 devices. Setting below 5 will likely break even a single device. IP limits are less reliable because mobile users roam between cell towers (briefly showing 2 IPs for 1 device), and multiple devices behind the same WiFi share 1 IP. Use `ips` as a secondary anti-sharing measure.
112112
>
113113
> **Traffic and quotas are lifetime (cumulative)**, not monthly. They don't auto-reset. Use `mtproxymax secret reset-traffic <label>` to manually reset counters, or rotate the secret.
114114
@@ -124,11 +124,11 @@ mtproxymax secret setlimits alice 100 5 10G 2026-12-31
124124
<summary><b>Limit Devices Per User (Recommended)</b></summary>
125125

126126
```bash
127-
mtproxymax secret setlimit alice conns 1 # Single device only
128-
mtproxymax secret setlimit family conns 5 # Family — up to 5 devices
127+
mtproxymax secret setlimit alice conns 5 # Single device (~3 conns per device, with headroom)
128+
mtproxymax secret setlimit family conns 15 # Family — up to 5 devices
129129
```
130130

131-
If someone with `conns 1` shares their link, the second device can't connect. Each Telegram app = exactly 1 connection.
131+
Each Telegram app opens ~3 TCP connections. Setting `conns 5` allows one device with headroom. If someone shares their link, the second device will hit the limit.
132132

133133
</details>
134134

@@ -168,9 +168,9 @@ mtproxymax secret add bob
168168
mtproxymax secret add charlie
169169

170170
# Each person gets their own link — revoke individually
171-
mtproxymax secret setlimit alice conns 2 # 2 devices
172-
mtproxymax secret setlimit bob conns 1 # 1 device
173-
mtproxymax secret setlimit charlie conns 3 # 3 devices
171+
mtproxymax secret setlimit alice conns 10 # ~3 devices
172+
mtproxymax secret setlimit bob conns 5 # 1 device
173+
mtproxymax secret setlimit charlie conns 15 # ~5 devices
174174
```
175175

176176
</details>

0 commit comments

Comments
 (0)