Below tested on Ubuntu 18.04
Refer the Screenshot, by default Ubuntu uses vino-server
1) Click on Ubuntu Settings
2) Click on Sharing
3) Click on the screen sharing
4) turn on the screen sharing button on the pop up window
5) set the options as shown above, set a password for the connection
6) disable encryption
sudo gsettings set org.gnome.Vino require-encryption false