Because I know how to build one but my cousin said it illegal to build one, so is this true or not?
Just download the dedicated server software and run it. The EASIEST way to get your own server is to rent one, but if you want it sitting in your house, you’re going to have to download, set up, and configure it yourself.