There are several instances when you are likely to make this error when you're trying to play Minecraft through your Microsoft account. But one of the main reasons that you are having https //aka.ms/remoteconnect error is because you have changed your device. For instance, when you switch to Xbox One from PS4 you are likely to have this error. As this error can be fixed easily people still use cross-play to play Minecraft.
For more details https://www.httpsakamsremoteconnect.com/