The problem: More than why, you can connect to Ubuntu remotely through windows successfully, but it will be disconnected instantly when successful
problem solved:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lightdm
Select lightdm in the pop-up interface
After the above operations are completed, you need to restart the computer to take effect
If it is not easy to make terminal input: enable users on ip to access your host
xhost ip