Under linux your devices have not meta-names like `com1` or so. Your usb-adapter is added to the `/dev`-directory with a driver specific name. The most usb-uart adapter use the name `/dev/ttyUSB*` where the `*` is a number beginning at 0. The best way to get this name is to view the changes of kernel messages via `dmesg` before and after plugin of the adapter. You should get something like that:
usb 4-2: ch341-uart converter now attached to ttyUSB0
So you have to use '`/dev/ttyUSB0`' instead of `com24`.
But access to a device node is restricted to the root user. So you have to workaround this.