Establishing Pymavlink Connection on Virtual Machine

I am trying to connect my CubePilot to a program running on an Lubuntu virtual machine on a Windows computer. The program is based on the following:
iq_pymavlink_tutorial/listen.py at master · Intelligent-Quads/iq_pymavlink_tutorial (github.com)

I am running it in VS Code. I changed the ‘udpin:localhost:14551’ line to ‘dev/ttyS3’ because I have the CubePilot plugged into the COM4 serial port on my computer. I run the code, but nothing happens.