Housekeeping

This commit is contained in:
maziggy
2026-05-08 13:33:04 +02:00
parent 829bc2dd6a
commit 91fa9cd432
-15
View File
@@ -1,15 +0,0 @@
docker exec bambuddy python3 -c '
import socket
host = "192.168.255.133"
ports = [80, 322, 990, 2024, 2025, 2026, 3000, 3002, 6000, 8883]
for p in ports:
s = socket.socket()
s.settimeout(3)
try:
s.connect((host, p))
print(f"{p} open")
except OSError as e:
print(f"{p} closed ({e.__class__.__name__}: {e})")
finally:
s.close()
'