The title of your post isn't clear. It sounds like you're trying to host your own game server. But there's really not any coding involved in a player setting up and running your own server. Perhaps you are trying to create mods, plugins, and/or modules to be used by a server?