The fact that it fails when starting the Appium session is because starting the server was somehow skipped and it is now trying to reach a server that was not started.
The server starting logic might have failed and was not started successfully without you noticing (It would throw an error message in the command prompt log) because the server might have been already running and trying to start it again with the same IP address and port number will give an error message saying that "The port number is already used by another application"
I recommend checking if the server is already running before you attempt to start it. If it was actually running, then you should stop it and then move to the start logic again. Also when working with the command prompt and executing actions in this manner, you should always print the output of the command execution in your log to be able to refer to that later and know what went wrong.
Hope I helped....
P.S. The IP address you are using "10.31.24.67" doesn't look like a local address on your machine, unless you are doing some loopback tunneling, so please check the IP address and make sure it is not the issue.