Factory reset is the last option that you must try at the end when nothing is working. It works on the same principle as restart as it will revert the previous settings. Hence, you can again log in from the browser with the default username and password.