I prefer using a Hosted server but for testing, I use that server and for other people who want to do that as well this is a great tutorial on how to do it!
If you want to run server on your pc, read abot SteamCMD, it's not hard to setup server using this tool. Actually there are more server that you can install using this tool.