I suggest you reverse that order. If first you learn how to host your own matrix server, you’ll have a better idea of what part of “how networks work” you wan to learn.
Or maybe you decide you want a full graduation course on how network works so you can learn all of the basics. But either way, that first half is a large endeavor.