On Ubuntu 18.04, I'm using socat to connect to a USB device physically attached to another machine (and exposed via ser2net):

sudo socat PTY,link=/dev/zwavevera,group=root,mode=777 TCP:vera.home.lan:7676

The socat command executes successfully and I can see the established connection in netstat. I can also see the new device in /dev, but only temporarily. After a little while, /dev/zwavevera disappears but the socat connection is still alive:

netstat -a | grep 7676 tcp 0 0 ESTABLISHED

The above works just fine on a Synology NAS, where a docker container needs the device. Now I want to migrate that container to a dedicated Ubuntu machine but I'm stuck with this problem.

What happens to the device? Can I find it and use it in some other way?

  • 1
    Try to use the strace command to investigate what happens inside socat. It shouldn't be very hard to understand. Or just paste the output to the question and I'll try to help you in troubleshooting. – Anton Danilov May 13 '19 at 16:23
  • 1
    Besides, you probably don't want group=root,mode=777. – xebeche May 13 '19 at 20:37
  • Strangely enough, it stopped doing that after a reboot. – chris May 14 '19 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.