I would like to use the dashboard server through python, however it says “connection refused”. Does anyone know a way to find the problem?
The code that I execute with python is the following and I have an Ethernet cable connected directly in the control box for which in my laptop I have made a wired-connection settings with manual IPv4 given the same ip address as below and submask of 255.255.255.0.
import socket
import time
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
s.connect(("192.168.3.67", 29999))
cmd = """popup("hello w")""" + "\n"
print(cmd)
s.send(cmd.encode())
time.sleep(0.1)
which results in this error:
s.connect(("192.168.3.67", 29999))
ConnectionRefusedError: [Errno 111] Connection refused