serial_to_serial_and_tcp You need to install socat for the serial port: $ apt-get install socat After that poit you should be able to run the python program by: python serial_to_serial_and_tcp.py {serial in} {serial out} {tcp port}