The Droplet web console provides out-of-band access and is available regardless of your network settings. It emulates the access you would have if you were sitting down with a keyboard and monitor attached to the actual server. You can use this feature to log in and revert bad settings to regain normal access.
You can check our official docs for the console here:
You will usually use the console if you can’t access your droplet using ssh via a ssh client and it’s usually the last resort option when it comes to troubleshooting.
You can also check our docs on How to Connect to Droplets with SSH:
There are two options at the bottom of the doc:
Connect with OpenSSH
Connect with PuTTY
Once you’re connected to you droplet via ssh-client you can check the recommendations provided by Bobby in the answer above.
Hope that this helps!