In this tutorial, I will demonstrate the the easiest way to build dedicated servers with Unreal Engine 5. Watch the full series for other tutorials like setting up Visual Studio, building the engine from source, and cross compiling for Linux.
https://dev.epicgames.com/community/learning/tutorials/EL8e/building-dedicated-servers-with-unreal-engine-5