Skip to content

SSDP Proxy for DLNA/UPnP. Find and pass discovery messages through subnet/vpn

License

Notifications You must be signed in to change notification settings

Cycloctane/dlnapass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DLNAPass

DLNA Pass: Pass DLNA/UPnP discovery messages through subnet/vpn.

This program acts like a SSDP Server Proxy for UPnP devices. It retrieves description from UPnP device and sends SSDP messages in local network to make the target UPnP device visible in local subnet.

Location header in advertisement remains the same as UPnP device's orginal address. UPnP clients (control points) should be able to connect to the target UPnP device directly.

It can also be used for accessing remote DLNA/UPnP service through vpns that do not route multicast traffic (like ipsec and openvpn).

Usage

DLNAPass

./dlnapass -i $interface -u $description_url -t 1800
  • -i: Network interface used for sending SSDP multicast messages. Note that linux loopback interfaces may need extra configuration to support multicast.
  • -u: URL of target UPnP device's root device description. (http://host:8200/rootDesc.xml for minidlna)
  • -t: Advertisement duration (max-age).
  • --verbose: Enable go-ssdp logger to see more verbose logging.

Use control-c to send ssdp:byebye and exit the program gracefully.

For example, to make a minidlna server at 192.168.1.2 in remote network visible after connecting to the remote network with ipsec:

./dlnapass -u http://192.168.1.2:8200/rootDesc.xml

DLNAPass will send ssdp:alive and respond to ssdp:discover. DLNA clients on localhost can be notified with server's original address (192.168.1.2) and connect to server through vpn tunnel.

DLNAFind

DLNAFind is a helper program for searching available UPnP root devices and DLNA (UPnP-AV) MediaServer service in local network. It is useful for getting root device description URL that can be used in DLNAPass -u.

./dlnafind

About

SSDP Proxy for DLNA/UPnP. Find and pass discovery messages through subnet/vpn

Topics

Resources

License

Stars

Watchers

Forks