If you are having issues spawning servers, try the following:
"C:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Binaries\\Win64\\UE4Editor.exe" "C:\\Path\\To\\My\\Project.uproject" /Game/ThirdPersonCPP/Maps/ThirdPersonExampleMap?listen -server -log
Including ?listen
and the map."C:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Binaries\\Win64\\UE4Editor.exe" "C:\\Path\\To\\My\\Project.uproject" 127.0.0.1 -game -log
Pro Tip: 127.0.0.1
should work on any machine.