Am I correct that “discovery” and the UDP port is used during the “add device - scan nearby” step? I’m trying to understand where I’m manually enter port 1900, also trying to determine what exactly is failing for me.
Here is where I’ve been trying ports 8081 and 1900:
It sure looks like both 1900 and 8081 are open on my NAS:
**➜** nc -uzv 192.168.1.254 1900
Connection to 192.168.1.254 port 1900 [udp/ssdp] succeeded!
**➜** nc -zv 192.168.1.254 8081
Connection to 192.168.1.254 port 8081 [tcp/sunproxyadmin] succeeded!
No matter what I try this is what I get when refreshing:
UPDATE 1: I turned the supervisord log level to trace and see this at startup. Look ok?
http server is running as reverse proxy at 192.168.1.254:8081
ssdp server is running 192.168.1.254:8081
UPDATE 2: I see this in the logs when I re-add the panel device in smartthings and when refreshing the device
2022-09-17 12:51:20,554 DEBG 'stproxy' stderr output:
192.168.1.16 - - [17/Sep/2022 12:46:30] code 404, message error trying to proxy
192.168.1.16 - - [17/Sep/2022 12:46:30] "GET /1/login.aspx HTTP/1.1" 404 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.16', 43646)
Traceback (most recent call last):
File "/var/packages/py3k/target/usr/local/lib/python3.8/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/var/packages/py3k/target/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/var/packages/py3k/target/usr/local/lib/python3.8/socketserver.py", line 720, in __init__
self.handle()
File "/var/packages/py3k/target/usr/local/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/var/packages/py3k/target/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "server.py", line 47, in do_GET
req_header = (self.parse_headers() | self.get_base_headers(hostname))
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
I should have explained before that I am running on the NAS without Docker

