It’s quite possible that you are only connecting to Apple’s built in server for Apple Remote Desktop which also runs on port 5900 by default. We recommend disabling ARD using SystemPreferences->Sharing->Services.
Alternatively, you can run OSXvnc on another port like 5901.