TGViewer
Viper Foundation Viper Foundation @viperfoundation · 7.58K subscribers
Post #78 2.94K
Today I managed to get two devices behind different NATs (Network Address Translation) talking to each other through TON (based on the work from sddao-v1).

Basically, it’s a TON Relay.

Here’s how it works: Alice (A) and Bob (B) both connect to a Relayer (R). Then messages can go from A to B through R:

A ↔ R ↔ B

Before this, I tried a TURN (Traversal Using Relays around NAT) version, but providers are expensive. For example, Metered currently offers:
• Growth Plan – $99/mo for 150 GB. Overage $0.40/GB (~$400/TB).
• Business Plan – $199/mo for 500 GB. Overage $0.20/GB (~$200/TB).
• Enterprise Plan – $499/mo for 2 TB. Overage $0.10/GB (~$100/TB).

And custom plan available. Can Metered and others provide for $1 - $8 per TB (see below)? I’m not sure 😅

Another option is Cloudflare ($51/TB). GCP, AWS, Azure (~$100 – $300/TB) are significantly more expensive. Twilio is even pricier, at around $400 – $820/TB depending on region.

The upside: easy Web integration and WebRTC support, but it’s pricey.

With TON, all you need for production is a VPS (starting as low as $3–$5) and network bandwidth (on Hetzner up to 20 TB included, with additional TBs costing $1 – $8 each depending on location). For development, you can set up a local network and use it just like in production.

The downside: working via the Web through TON isn’t very convenient yet, but it will be possible using sddao-v1 0.0.6 (https://github.com/systemdesigndao/sddao-v1-builds-public/tree/master/sddao-p2p-0.0.6).

I expect the Relay version will get a different name. For now, I’m finishing E2E encryption, and the chat will be publicly available.

If you have any questions – feel free to DM me.
  • 👍 4
  • 👀 1
  • 🦄 1
More from @viperfoundation
  1. Jun 26, 2026What if mix Telegram vibe and Torrents vibe? P2P is live 🥰 Just in case save this app!
  2. Jun 26, 2026Hey Viper 1.5 live Let’s hit 1k downloads today Share with your iOS based homies and besti…
  3. Jun 13, 2026I'm currently working on an experimental P2P update. The original goal was to create a tru…
  4. Mar 12, 2026Viper Foundation pinned «One of the first messengers built around the TON ecosystem, avail…
  5. Mar 12, 2026One of the first messengers built around the TON ecosystem, available in the App Store sin…
  6. Dec 18, 2025Viper Foundation pinned a photo
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →