Skip to main content

Convert serial device to tcp socket.

Project description


You can install from pip:

# pip install serial2tcp

or manual:

# git clone git:// # cd serial2tcp # python install

Redirect USB-Serial

For redirect /dev/ttyUSB0 with baudrate 9600 bps and can connect to that:

# serial2tcp -p /dev/ttyUSB0 -b 9600 -l –allow-list=’’


Usage: serial2tcp [options]

Simple Serial to Network (TCP/IP) redirector.

WARNING: You have to allow connections only from the addresses in the “–allow-list” option. e.g. –allow-list=’,,’ NOTICE: This service supports only one tcp connection per instance.


show program’s version number and exit

-h, --help

show this help message and exit

-p SERIAL, --port=SERIAL

Serial port, a number, defualt = ‘/dev/tty0’


Baudrate, default 115200

-r, --rtscts

Enable RTS/CTS flow control (default off)

-x, --xonxoff

Enable software flow control (default off)

-P PORT, --localport=PORT

TCP/IP port on which to run the server (default 9100)

-l LISTEN, --listen=LISTEN

Listen address on which to run the server (default ‘’)


List of IP addresses e.g ‘,’

Thanks to

This is based on

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serial2tcp-0.5.1.tar.gz (3.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page