I ran the script on the raspberry pi. Here's the output:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age = 600
EXT:
LOCATION:
http://192.168.2.28:5000SERVER: Linux/1.0 UPnP/1.1 AlarmDecoder/1.0
ST: AlarmDecoder:api
USN: uuid:43cd9d0a-05d2-11e6-9d2d-b827eb8417e6
All of my devices are on a flat network for all intents and purposes, so there shouldn't be any communication issues. Running the script from my Mac I get the following output identifying my Philips Hue bridge the same as before:
HTTP/1.1 200 OK
HOST: 239.255.255.250:1900
EXT:
CACHE-CONTROL: max-age=100
LOCATION:
http://192.168.2.24:80/description.xmlSERVER: FreeRTOS/7.4.2 UPnP/1.0 IpBridge/1.12.0
hue-bridgeid: 001788FFFE17DB29
ST: upnp:rootdevice
USN: uuid:2f402f80-da50-11e1-9b23-00178817db29::upnp:rootdevice