On server
socat -x tcp-l:6001,reuseaddr,fork /dev/ttyUSB0,cfmakeraw,b9600
On client
socat -d -d pty,link=/dev/vcomport,cfmakeraw,perm=0777 tcp:10.10.40.229:6001
On server
socat -x tcp-l:6001,reuseaddr,fork /dev/ttyUSB0,cfmakeraw,b9600
On client
socat -d -d pty,link=/dev/vcomport,cfmakeraw,perm=0777 tcp:10.10.40.229:6001