Run Forge, Fabric, NeoForge, and full modpacks on your server.
Set up the Fabric loader, add Fabric API, and install server mods correctly so both the server and clients match.