16.04 vnc with a separate port per user

I have a specific need, which is to have a separate port per VNC user. I will run a java app w/ UI on a bare X session with window manager (but no xfce/lxdm/etc) for each user.

I also need these to be shared sessions, so once a user logs in a second VNC session will attach.

I’m doing this right now with separate virtual machines, but this is not ideal.

I did find this thread:
https://askubuntu.com/questions/581979/ubuntu-14-10-multiple-simultaneous-independent-remote-desktop-like-connection

it’s somewhat similar, but for 14.04 and it’s using the VNC ‘screen’ per user. Now, if that works as 5900 for first screen and 5901 for second screen then I would just need some advice on updating this to ubuntu 16.04 and making those sessions multi-user.

Thanks!

I’ve moved this to the https://community.ubuntu.com/c/support-help-requests category because this site isn’t designed to take tech support questions. Sorry. I’d recommend using one of the official support channels listed on the https://community.ubuntu.com/t/finding-help/712 page.