How do I make a dedicated server?

You need to set up a special server target for UnrealBuildTool.

This tutorial explains the basics, but you can use console commands to start up a server.