Forwarding serial port over network and back to serial char device on remote host (socat?)
Solution 1:
You should be able to use the PIPE
address type of socat
to create a Unix pipe to connect to, for example (assuming that the device with the real serial device creates the network connection):
socat PIPE:/dev/fakesocatserial0 TCP-LISTEN:1234
Solution 2:
have you tried sshfs? You can simply mount remote:/dev
into somewhere like local:/remote/dev
and point to the actual character device