Background: I want to use this Wifi-to-Serial adapter to control a telescope via Stellarium running on Kubuntu 16.04 (64 Bit).
I'd created a virtual com port using socat with this command line:
$ sudo socat pty,link=/dev/virtualcom0,raw tcp:10.0.0.1:4030
and I see the new device here:
$ ls -l /dev/virtualcom0
lrwxrwxrwx 1 root root 10 2017-07-03 09:05 virtualcom0 -> /dev/pts/6
$ ls -l /dev/pts/6
crw--w---- 1 root tty 136, 6 2017-07-03 09:05 /dev/pts/6
Trying to use /dev/virtualcom0 e.g. with picocomm works as long as I run picosomm with root privileges. But when I try to use the port with standard user privileges, I got an error:
$ picocom /dev/virtualcom0 --baud 9600 --imap lfcrlf
FATAL: cannot open /dev/virtualcom0: Permission denied
Any idea how to make the virtual com port accessable with standard user rights, maybe by defining a special udev rule for this?
Edit #1
Following the preferred approach of dirkt's answer, I'm now using:
$ socat pty,link=/tmp/virtualcom0,raw tcp:10.0.0.1:4030
Note, that this also works fine on macOS (after installed socat via homebrew).