Skip to content
Static UPnP responds to upnp search requests with statically configured responses
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Set default rs and add chromecast_cd to config file. Apr 25, 2018
static_upnp
.gitignore Add .gitignore Dec 1, 2016
AUTHORS Initial commit Dec 1, 2016
LICENSE Initial commit Dec 1, 2016
README.md Fix link to StaticUPnP_StaticServices.py Oct 21, 2017
setup.py Add dnslib version Apr 1, 2017

README.md

Static-UPnP

Static UPnP responds to upnp search requests with statically configured responses. This can be usefull to make devices available on other subnets, or to make devices available that are not responding to search requests.

Installation

git clone https://github.com/nigelb/Static-UPnP.git
cd Static-UPnP
pip install .

Or if you want static_upnp to automatically get the IP addresses to bind to from your network interfaces:

pip install .[interfaces]

Examples

Chromecast

This example demonstrates how to make a chrome cast available on another subnet. This demonstration assumes that the Chromecast's IP address is able to be determined by resolving the Chromecast hostname.

cd Static-UPnP
static_upnp --config-dir examples/Chromecast

If the Chromecast's IP address cannot be resolved you can set it by changing examples/Chromecast/StaticUPnP_StaticServices.py line 60. For example if the Chromecast's IP address is 10.0.0.20 then change line 60 from:

chromecast_ip = socket.gethostbyname_ex("Chromecast")[2][0]

to:

chromecast_ip = "10.0.0.20"
You can’t perform that action at this time.