On the remote unit install ser2net then add this line in /etc/ser2net.conf configuration file
2000:raw:600:/dev/ttyS1:115200 8DATABITS NONE 1STOPBIT
Launch ser2net:
# ser2net
Install the socat utility.
Create a directory called $HOME/dev
Launch socat:
$ socat pty,link=$HOME/dev/ttyV0,waitslave tcp:remoteip:remoteport
Open minicom on /dev/ttyV0 and send chars to your remote port.
Serial port on stdin
socat /dev/ttyUSB0,b115200,raw,echo=0,crnl -
socat /dev/ttyS2,b115200,raw,echo=0 TCP:terzo.acmesystems.it:2002 socat /dev/ttyS4,b115200,raw,echo=0 TCP:terzo.acmesystems.it:2004
socat TCP-LISTEN:2002 PTY,link=ttyV2,raw,crnl socat TCP-LISTEN:2004 PTY,link=ttyV2,raw,crnl