Hi, I'm Rick 👋

Fixer - Engineer - Coder

Rick Timmis

Hi, I'm Rick 👋

Fixer - Engineer - Coder

Zero-Lag NDI Streaming: Send OBS Video from Linux Host to Windows VM Over Host-Only Network

host-only-networking.jpg

Introduction

If you’re streaming or recording from a Linux machine (like Kubuntu) using OBS Studio, but want to offload encoding, effects, or streaming to a Windows setup—all while keeping latency ultra-low—you don’t need WiFi, capture cards, or expensive hardware.

Enter NDI® (Network Device Interface) combined with a VirtualBox host-only network. This setup creates a private, wired-like connection between your Linux host and Windows virtual machine. Video travels over a dedicated virtual Ethernet link with typically 30ms or less latency, full quality, and no interference from your home network or neighbors.

It’s secure, isolated, and blazing fast—perfect for multi-PC streaming workflows. Bonus: your CPU load drops because the heavy lifting can move to the VM. Setup takes about 10-15 minutes.

Understanding the Setup

This works great for gaming streams (capture on Linux host, encode/stream from powerful Windows VM) or complex productions.

Prerequisites:

Implementation: Step-by-Step Guide

1. Create the Host-Only Network on Linux Host

Open VirtualBox → FileToolsHost Network Manager (or Preferences → Network on older versions).

To bring the interface up (if needed):

sudo ip addr add 192.168.56.1/24 dev vboxnetX  # Replace X with the number (e.g., vboxnet0)
sudo ip link set vboxnetX up

(You can find the interface name in Host Network Manager.)

2. Configure the Windows VM Network

Inside Windows:

host-only-network-config-windows.png

Test connectivity: From Windows CMD, ping 192.168.56.1. From Linux terminal, ping 192.168.56.2.

3. Enable NDI Output on Linux OBS (Host)

Your program feed is now broadcasting over NDI.

4. Add NDI Source in Windows OBS (VM)

Expect 30ms or less delay, buttery smooth even with audio (dogs barking included). Monitor CPU usage—you’ll likely see a nice drop on the host.

Isolating NDI Traffic in OBS to a VirtualBox Host-Only Network

When running OBS with NDI between a Linux host and a Windows guest VM in VirtualBox, you might notice that NDI sources from your main Network / WiFi still appear in the guest — even when using a dedicated host-only network (vboxnet0).

This happens because the DistroAV (NDI) plugin in OBS binds to all interfaces (0.0.0.0) and sends multicast discovery packets out on every available network interface, regardless of the “Bind to IP” setting in OBS Advanced → Network (which only affects RTMP streaming, not NDI).

A clean and effective workaround is to block NDI multicast traffic on your Network / WiFi interface using iptables. This forces all NDI communication to stay on the VirtualBox host-only network (vboxnet0) while keeping your Network/WiFi fully functional for internet access and everything else.

The Solution: Block Outgoing NDI Multicast on Network / WiFi Run this single command on your Linux host:

sudo iptables -I OUTPUT -o wlp0s20f3 -d 224.0.0.0/4 -j DROP

Replace wlp0s20f3 with your actual WiFi interface name (check with ip link). Use ip addr to list your networks

What it does:

Troubleshooting Tips:

Further Reading

This setup turns your Linux host + Windows VM into a pro-grade, lag-free production pipeline. No more Network / WiFi excuses—go wired (virtually) and watch your streams shine!