You know that you can start code with different parameters?

Just check them with command_str [Look into the GS Manual) and than start your game as a server or a client via Code.