From 923de45109cfc51ef28fae2c873701b2893ba643 Mon Sep 17 00:00:00 2001 From: seahawk1986 Date: Mon, 31 Jul 2017 09:15:13 +0200 Subject: [PATCH] use ip address 0.0.0.0 instead of 192.168.0.6 so the script does not depend on this ip address --- detectsatip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detectsatip.py b/detectsatip.py index 8efccb6..30df387 100755 --- a/detectsatip.py +++ b/detectsatip.py @@ -31,7 +31,7 @@ try: except: pass sock.settimeout(1) -sock.bind(("192.168.0.6", SSDP_PORT)) +sock.bind(("0.0.0.0", SSDP_PORT)) sock.sendto(ssdpRequest, (SSDP_ADDR, SSDP_PORT)) try: while 1: