Do you run Home Assistant somewhere? You can easily add the ZigBee / Z-Wave integrations, both support TCP directly. This is how I tested the serial ports a few years ago.
This is not what you asked for, but these are my two cents: do not refer to devices as "/dev/ttyS1" or "/dev/ttyUSB1", because the actual name of each device may depend on the order when they are detected. Use a "hotplug.d" script to give them a proper link, using the USB identifier.
@andyboeh Even though I had hoped that it would still be as simple today as it used to be and as you described, I had to realize that the "Serial over IP" variant - at least for Z-Wave - is obviously no longer supported by Home Assistant.
It is still supported, but you need a Z-Wave JS server for it providing the driver. The integration connects to this driver, it cannot directly connect to a Z-Wave dongle, not even a USB one. The server is either available as an add-on (Zwave-js) or as a docker container. See the HA documentation at https://www.home-assistant.io/integrations/zwave_js/
That wasn't obvious when I only mentioned the integrations, sorry.
If you install the integration first, the add-on (Zwave-js) is installed automatically if it is not found. But even with this "flow" there is no chance to enter the network path of the interface provided by ser2net.
I use the Z-Wave JS UI (formerly Z-Wave JS 2 MQTT) and it's working perfectly fine. Looks like you're right and that the Z-Wave JS add-on doesn't support it. However, you can easily replace it by the Z-Wave JS UI add-on yourself.
ser2net, it can't event connect. What happens if you telnet to this IP/port? If you also get a connection refused error, something is wrong with ser2net, i.e. it's not running at all.
Use netstat -lpn on the router running ser2net to see if ser2net has opened the port. Also I think ser2net only allows one active connection per port, an attempted second connection will be refused.
Try nc and/or telnet on the same router that is running ser2net. If the remote machine is not on the same LAN you will need to be sure that the firewall(s) are opened to route between the networks.
cipo@Cipo-MacBookPro ~ % nc -v -n 192.168.40.117 5000-5001
Connection to 192.168.40.117 port 5000 [tcp/*] succeeded!
Port already in use
Connection to 192.168.40.117 port 5001 [tcp/*] succeeded!
An init script is supplied with the ser2net package.
Have you run /etc/init.d/ser2net enable
Though I think services are enabled upon installation, running enable once should enable automatic startup on boot.