Error code

Minecraft Unable to connect to world

MINECRAFTUnable to connect to world
Game/Platform Error· An error code shown by a game or gaming platform/launcher.

What it means

Minecraft Bedrock cannot join another player's world or session.

How to fix it

  1. Set your Xbox online privacy to allow joining multiplayer games.
  2. open your NAT type in network settings.
  3. temporarily disable antivirus or firewall to test.
  4. update your network drivers.
  5. remove and re-add the friend then try again.

Not affiliated with Minecraft. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.