<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: File Transfer</title>
    <description>The latest articles on DEV Community by File Transfer (@filetransfe_7fae314).</description>
    <link>https://dev.to/filetransfe_7fae314</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253657%2F173f70ce-a97c-44ea-97ff-6df6e5ed3b78.png</url>
      <title>DEV Community: File Transfer</title>
      <link>https://dev.to/filetransfe_7fae314</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/filetransfe_7fae314"/>
    <language>en</language>
    <item>
      <title>WebRTC file transfer with a 9-digit code and no signaling server of my own</title>
      <dc:creator>File Transfer</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:02:45 +0000</pubDate>
      <link>https://dev.to/filetransfe_7fae314/webrtc-file-transfer-with-a-9-digit-code-and-no-signaling-server-of-my-own-4hc4</link>
      <guid>https://dev.to/filetransfe_7fae314/webrtc-file-transfer-with-a-9-digit-code-and-no-signaling-server-of-my-own-4hc4</guid>
      <description>&lt;p&gt;I built &lt;strong&gt;File Transfer&lt;/strong&gt;, a tool that sends files directly between two browsers. One screen shows a 9-digit code (for example &lt;code&gt;482-915-736&lt;/code&gt;), the other side types it in, and the two devices connect peer-to-peer over WebRTC. Files never touch a server.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web version (nothing to install): &lt;a href="https://rentabextension-oss.github.io/rentab/ft/?utm_source=devto" rel="noopener noreferrer"&gt;https://rentabextension-oss.github.io/rentab/ft/?utm_source=devto&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Chrome extension (side panel): &lt;a href="https://chromewebstore.google.com/detail/lffomfhccijamechladimcfcpijpjnne?utm_source=devto" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/lffomfhccijamechladimcfcpijpjnne?utm_source=devto&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this post I want to show the part I found most interesting: &lt;strong&gt;how to connect two browsers safely with only a short code, without running a signaling server.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The big picture
&lt;/h2&gt;

&lt;p&gt;To open a WebRTC connection, the two sides first have to exchange an offer and an answer (SDP) somehow. Usually you run your own signaling server for that. Here I use &lt;strong&gt;public Nostr relays and public MQTT brokers&lt;/strong&gt; as a "bulletin board", and everything posted there is encrypted.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Device A (shows code)        Public relays (Nostr / MQTT)        Device B (types code)
        | -- p1: CPace share Ya ----------------&amp;gt; |                       |
        |                                         | &amp;lt;-- p2: Yb + encrypted offer
        | -- p3: encrypted answer ---------------&amp;gt; |                       |
        | ======== direct WebRTC (DTLS) connection, files go P2P ======== |
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The relays only ever see a few short encrypted messages. File contents never pass through them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's inside the 9-digit code
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;482-915-736&lt;/code&gt; has two parts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Leaves the device?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;482&lt;/code&gt; (first 3 digits)&lt;/td&gt;
&lt;td&gt;picks a "mailbox" on the relays&lt;/td&gt;
&lt;td&gt;yes (not secret)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;915-736&lt;/code&gt; (last 6 digits)&lt;/td&gt;
&lt;td&gt;the CPace password&lt;/td&gt;
&lt;td&gt;never&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first 3 digits are hashed before being used as a topic name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;topicFor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sha&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'p2pft-nameplate|'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;padStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'0'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Nostr, messages are ephemeral events (kind 25050, a range relays don't store) tagged with &lt;code&gt;#t&lt;/code&gt;; on MQTT they are published to &lt;code&gt;p2pft/&amp;lt;topic&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a PAKE (CPace) and not "encrypt with the code"
&lt;/h2&gt;

&lt;p&gt;The simplest idea is "derive a key from the 6 digits and encrypt the offer with it". That's dangerous: 6 digits are only a million combinations, so anyone watching the relay could grab the ciphertext and brute-force it offline.&lt;/p&gt;

&lt;p&gt;So I use &lt;strong&gt;CPace&lt;/strong&gt;, a PAKE, on ristretto255:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;both sides run Diffie-Hellman with a generator derived from the password&lt;/li&gt;
&lt;li&gt;they only end up with the same key if the passwords match&lt;/li&gt;
&lt;li&gt;an eavesdropper can't test passwords offline from what they saw&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If someone types a wrong code, the keys don't match, decryption fails, and the host throws that code away (a &lt;code&gt;bad&lt;/code&gt; message). So &lt;strong&gt;each code allows exactly one guess&lt;/strong&gt;. Codes also rotate every 10 minutes.&lt;/p&gt;

&lt;p&gt;After connecting, both screens show four words derived from both DTLS fingerprints (for example &lt;code&gt;clock · ferry · hazel · spider&lt;/code&gt;). If anything had been swapped in the middle, the words would differ.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making both sides land on the same relays
&lt;/h2&gt;

&lt;p&gt;Public relays are often down, so the app connects to several from a long list at once. But when each side picked randomly, they sometimes had no relay in common and never met (about 1 in 6 times).&lt;/p&gt;

&lt;p&gt;The fix: &lt;strong&gt;a shuffle seeded by the topic&lt;/strong&gt;. Same code → same order → same relays on both sides.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;shuffle&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2166136261&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// FNV-1a&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;imul&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^&lt;/span&gt; &lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charCodeAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16777619&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rnd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;rnd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nostr and MQTT run in parallel, and either one is enough. If no relay gets through, the app falls back to a mode where the two people copy a long code to each other by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shrinking the SDP
&lt;/h2&gt;

&lt;p&gt;A raw SDP is several KB. What's really needed is the DTLS fingerprint, the ICE ufrag/pwd and a few candidate addresses, so only those are packed into a compact binary form. New candidate types (for example relay candidates from the user's own TURN server) reuse the existing format so older versions stay compatible.&lt;/p&gt;

&lt;h2&gt;
  
  
  The transfer itself
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;files are split into 1 MB blocks, each checked with SHA-256&lt;/li&gt;
&lt;li&gt;the receiver writes to OPFS from a worker, so memory stays flat&lt;/li&gt;
&lt;li&gt;after a drop, the transfer resumes from the first missing block&lt;/li&gt;
&lt;li&gt;the send buffer is paced with &lt;code&gt;bufferedAmountLowThreshold&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;on high-latency links one DataChannel stalls, so up to 8 extra &lt;code&gt;RTCPeerConnection&lt;/code&gt;s are added, and kept only if they actually help&lt;/li&gt;
&lt;li&gt;on-the-fly zstd compression (WebAssembly), with the level re-tuned every 2 seconds to match the line speed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When it doesn't work
&lt;/h2&gt;

&lt;p&gt;There's no TURN server in the design, so some networks can't connect. From anonymous stats (no IP addresses are collected) the three main causes are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;symmetric NAT on both sides&lt;/strong&gt;: neither can accept an incoming connection&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wi-Fi client isolation&lt;/strong&gt;: same network, but devices aren't allowed to talk to each other&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CGNAT&lt;/strong&gt;: the ISP shares one public address between many customers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The app runs a quick network check before connecting and explains the cause when it can. Settings also let you add your own TURN server, and when a phone and a computer are next to each other, the app suggests connecting the computer to the phone's hotspot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;public Nostr / MQTT can work as a bulletin board, so WebRTC can connect without your own signaling server&lt;/li&gt;
&lt;li&gt;if you use a short code, don't turn it into a key directly: use a PAKE (CPace)&lt;/li&gt;
&lt;li&gt;with public relays, pick them deterministically so both sides choose the same ones&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The web version works without installing anything. I'd love to hear whether it connects on your network and what speed you get.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web: &lt;a href="https://rentabextension-oss.github.io/rentab/ft/?utm_source=devto" rel="noopener noreferrer"&gt;https://rentabextension-oss.github.io/rentab/ft/?utm_source=devto&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Chrome extension: &lt;a href="https://chromewebstore.google.com/detail/lffomfhccijamechladimcfcpijpjnne?utm_source=devto" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/lffomfhccijamechladimcfcpijpjnne?utm_source=devto&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webrtc</category>
      <category>javascript</category>
      <category>security</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
