Mojang took down all p2p services in https://www.minecraft.net/en-us/article/minecraft-26-2-pre-release-1
The mod will be limited to only managing the friends list, while the p2p part won't work. Once mojang brings back p2p this mod will be updated.
Quick and dirty client mod that backports the "play with friends" feature Mojang shipped in the 26.2 snapshots. The Mojang-hosted friends list plus P2P-over-WebRTC.
The 26.2 feature is mostly client-side, and the Mojang services that back it work from any logged-in account. So this is a thin re-implementation on top of those same services:
api.minecraftservices.comsignaling-afd.franchise.minecraft-services.netwebrtc-javaIn theory, it's version independent enough I could make a universal mod that makes it work on any Netty based Minecraft version. Who knows if I can make it work.