Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
/ Static-UPnP Public archive

Static UPnP responds to upnp search requests with statically configured responses

License

Notifications You must be signed in to change notification settings

nigelb/Static-UPnP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Static UPnP responds to upnp search requests with statically configured responses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages