>);

socket.bind(<span class="hljs-number">1234</span>, () => {
  socket.setMulticastInterface(<span class="hljs-string">'::%eth1'</span>);
});</code></pre>
<p>On Windows, where scope format uses an interface number:</p>
<pre><code class="language-js"><span class="hljs-keyword">const</span> socket = dgram.createSocket(<span class="hljs-string">'udp6'</span>);

socket.bind(<span class="hljs-number">1234</span>, () => {
  socket.setMulticastInterface(<span class="hljs-string">'::%2'</span>);
});</code></pre>
