UDP Commands Errors

Hi,

We are attempting to automate all our machines in our warehouse, we are looking into the UDP commands available, I found the attached .py file I found in the forum. However, I get the following error when trying to run.

UDP target IP: 192.168.1.19
UDP target port: 19841
UDP input port: 19842
message: LOADFILE:A:\0C-SIZK-ITP4\529016_252441537643-2680305967015.lbrn

Traceback (most recent call last):
File “C:\Users\JamieCox\Downloads\LightBurnLoad.py”, line 19, in
inSock.bind( (UDP_IP, UDP_IN_PORT) )
File “C:\Python27\lib\socket.py”, line 222, in meth
return getattr(self._sock,name)(*args)
error: [Errno 10049] The requested address is not valid in its context

Can anyone advise on how I can rectify this error and also advise on all available UDP commands.

Thanks!
Jamie.

error: [Errno 10049] The requested address is not valid in its context

‘host’ needs to be a local address.

bind(…) method of socket._socketobject instance
bind(address)

Bind the socket to a local address.  For IP sockets, the address is a
pair (host, port); the host must refer to the local host.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.