Fix discover mechanism for running server at startup