I’d recommend having a good read through this excellent thread. Making your own server
It’s long. But you’ll learn a lot.