One of the scripts that i have been given to work with uses port numbers to communicate to the serial port like
4001
4002
Using a USB Serial hub which is connected to one machine and running the script from another machine but the actual ports are like,
/dev/ttyUSB0
/dev/ttyUSB1
How do i map /dev/ttyUSB0
with 4001 so that when i call the script and pass 192.168.X.X:4001, it should be able to communicate to the serial port ?