title: How to add/remove Multicast Group under a specific interface (Windows)
body: <p>I have a multicast camera on ip 225.1.2.3.</p>
  
  <p>On my computer, I can play video in VLC over LAN card or Wi-Fi.
  But when i start playing with ffplayer (ffplay.exe) it looks like it registers to multicast:
  <img src="https://i.stack.imgur.com/8D4Fj.png" alt="image1"></p>
  
  <p>and because of that multicast is added to a specific network adapter.
  <img src="https://i.stack.imgur.com/5qxCS.png" alt="image2"></p>
  
  <p>but this is not shown in
  <img src="https://i.stack.imgur.com/5tI0Q.png" alt="image3"></p>
  
  <p>After this multicast IP address is added to specific network (on image added to Wi-Fi) I tried to play it on LAN card. Video can't be played anymore. 
  I checked Wireshark and packets are coming to LAN device but video can't be played.</p>
  
  <p>My question is how to remove joined multicast from a specific network adapter?</p>
  
  <p>I tried </p>
  
  <pre><code>route delete 225.1.2.3
  </code></pre>
  
  <p>but since this IP is not shown in route print this doesn't work.</p>
  
  <p>Also tried </p>
  
  <pre><code>route -p add &lt;multicast address&gt; MASK &lt;subnet mask&gt; &lt;adapter primary address&gt;
  route -p add 225.1.2.3 MASK 255.0.0.0 0.0.0.0
  </code></pre>
  
  <p>but didn't help</p>
  
  <p>To fix I disabled the Wi-Fi adapter, and the reference to multicast was lost. After that I was able to play video on LAN again. But this is not a good fix, any ideas?</p>