RobotStudio event

Send commands to VC from a pc on the local network running linux?

mangekyo
mangekyo
edited November 2021 in RobotStudio
Using the code below on the same pc that is running robotstudio works. But how do I do it from a different pc? Is it possible at all?

import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

host = '127.0.0.1
port = 2222
msg = ''
client.connect((host,port)) 

print('Exit=Quit')

while(msg != 'exit'):
    
    msg = input() 
    client.send(bytes(msg,'utf-8')) 


client.close()