Can't create non-dedicated server

Whenever I try to create a non-dedicated server on Gmod about half-way through loading (on loading resources) it goes back to the main menu, and when I try again it gets stuck on “Establishing connection to server” Help! And I also have uninstalled it and reinstalled it.