This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/problems/2026-05-26-ndi-sources-hidden-by-vpn-interface-priority.md
2026-05-26 18:54:22 +03:00

3.2 KiB

NDI Sources Hidden By VPN Interface Priority

Context

Environment observed on qore while working on the standalone Unreal 5.7 KAMAZ prototype at C:\git\kamaz5360.

The project created three NDI streams:

  • KamDash, 1280 x 720, 30 fps dashboard stream.
  • KamMirrLeft, 576 x 1024, 30 fps left mirror stream.
  • KamMirrRight, 576 x 1024, 30 fps right mirror stream.

Unreal logs said the UNDIMediaOutput captures started correctly, but no NDI receiver saw the sources locally or on other LAN computers.

Symptoms

  • NDI receiver tools did not list KamDash, KamMirrLeft, or KamMirrRight.
  • Other computers also did not see the streams.
  • Unreal log showed successful NDI capture startup:
    • NDI runtime library loaded and initialized
    • Media Capture Started: Render Target (1280 x 720)
    • Media Capture Started: Render Target (576 x 1024)
    • KAMAZ_NDI KamDash started=1 state=1
    • KAMAZ_NDI KamMirrLeft started=1 state=1
    • KAMAZ_NDI KamMirrRight started=1 state=1
  • A separate minimal NDI test sender and NDI Tools Test Patterns were also not discoverable while the VPN/routing state was wrong.

Cause

Amnezia VPN was active and had higher IPv4 interface priority than Ethernet. NDI discovery and/or stream routing followed the VPN interface instead of the LAN interface. Disabling VPN made NDI work.

On the same machine, restoring Amnezia priority was required for Codex connectivity. Do not permanently lower or disable the VPN without the user knowing, because the active Codex/API session may depend on it.

Diagnosis

First verify whether Unreal actually started NDI:

rg -n "KAMAZ_NDI|NDIMedia|Media Capture|KamDash|KamMirr" C:\git\kamaz5360\Saved\Logs\kamaz5360.log

Then check routing and firewall:

Get-NetConnectionProfile | Select-Object Name,InterfaceAlias,NetworkCategory,IPv4Connectivity

Get-NetIPInterface |
  Where-Object { $_.AddressFamily -eq 'IPv4' } |
  Sort-Object InterfaceMetric |
  Select-Object InterfaceAlias,InterfaceIndex,InterfaceMetric,ConnectionState

Get-NetFirewallRule -PolicyStore ActiveStore |
  Where-Object { $_.DisplayName -match 'NDI|Unreal|codex_sandbox' } |
  Select-Object DisplayName,Enabled,Direction,Action,Profile

If Unreal reports Media Capture Started but NDI Tools Test Patterns also cannot be found, debug Windows networking/NDI Access Manager before changing Unreal code.

Fix

Fast test:

  1. Disable Amnezia VPN.
  2. Restart Unreal or press Play again.
  3. Check NDI receiver for KamDash, KamMirrLeft, and KamMirrRight.

Production fix options:

  • Configure NDI Access Manager / routing to prefer the Ethernet LAN interface.
  • Put the Ethernet network on a trusted/private network profile if appropriate.
  • Add firewall allow rules for UnrealEditor.exe inbound and outbound if the machine policy blocks traffic.
  • If interface metrics are changed for NDI testing, restore Amnezia afterward if the user needs VPN connectivity.

Do Not Misdiagnose

Do not rewrite the dashboard or mirror rendering code if Unreal logs show both NDI captures started and a separate NDI Test Patterns source is also invisible. That is a network discovery/routing issue, not a render target or camera issue.