Ide 1539

Also if server is started in debug port then it should return the debug port