Problem
When attempting to start the K2 Server service in console mode, the following error was logged:
Error Invoking 'StartHostServer' : SourceCode.HostServerLib : An attempt was made to access a socket in a way forbidden by its access permission.
Solution
Changing the port from 5555 to 443 on the HTTPS binding for the K2 site allowed the K2 service to start in console mode.