Would like to be able to use same virtual port for multiple widgets

I found these on another post - but as it is directly related to this post as well, I am copying the answer here for easier reference.