Connecting a DVR Tuner to a Plex Server in Hyper-V

316 views Asked by At

is there a way to connect a dvr tuner to a Plex Server hosted in Hyper-V?

I have searched but could not find a Question about this topic.

My build is a Win22 Datacenter Server running Plex in Hyper-V. A Hauppauge dualHD is connected to the Win22 Datacenter Server via USB.

Thanks for your help!

1

There are 1 answers

6
Emily On BEST ANSWER

Current Answer

I'm updating my answer as I didn't realize it was a tuner and not a DVR box connected to your TV. From what I'm seeing online, your best bets are:

  • use Enhanced Session Mode to connect the device over RDP (which only supports some devices)
  • use a third-party tool such as Donglify (this is from results on Google. Buy at your own digression) to allow USB passthrough
  • use a Type 2 hypervisor (VirtualBox, VMware) to run your instance of Plex instead
  • run Plex outside of Hyper-V on the same system with a sandboxed user
  • run Plex on another device entirely, such as a Raspberry Pi.

I can't help with the first, as it requires some gpedit.msc magic I cannot do, or second as I have never used one.
3rd option will reduce program speeds which may cause slowdown if multiple people stream at once.
4th option is my personal recommendation, as you bypass the need to use a hypervisor entirely and keep on the same device.
5th is only good if you use a USB-based drive and have a decent bit of experience with Linux.


Old Answer

Kept for the sake of archival.

You'll want to use Powershell and the Add-NetNatStaticMapping cmdlet to allow inbound connections to the Hyper-V server. This will need a vNAT adapter set up. See the linked blog post (not mine) if you need help with that, too.
Assuming the vEthernet connection has an internal IP of 192.168.10.2 and a NAT network name of NATSwitch, with Plex on the default port of 32400:

Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 32400 -Protocol TCP -InternalIPAddress "192.168.10.2" -InternalPort 32400 -NatName NATNetwork

You will most likely need to replace the internal IP, port, and NAT name.
After this is set up, you'll need to point your DVR to the IP of the Windows Server box.

Sites referenced: Plex support page on ports to forward
A GitHub user's blog, specifically a post on port forwarding