I have a linux VNC server which works fine through TigerVNC. But if I try to connect to the same VNC server through the ScreenShare app, it get stucks indefinitely in the "Connecting" dialog after entering my VNC password. I'm using macOS 10.14.6.
Note that ScreenShare used to work just fine until I restarted the VNC server on the remote linux machine. I had this problem once in the past, but it got resolved on its own somehow. Not sure why.