Hi,
Last time I have seen this error message (Error: Illegal port: 0) a restart of the computer solved it.
Close TruClient browser and VuGen. Check task manager and kill any orphan mdrv process that is running there. Try running the TC script again. If the issue is not resolved please restart the machine.
If the issue is not resolved please report a ticket to HP support.
By the way, the issue is that the browser launches mdrv.exe process yet fails to communicate with it since mdrv process fails to allocate port for the communication.
Regards,
Shlomi