"Server selection timed out after 30000 ms" error during mongodb compass connection

Didn’t tried with shell, but looking in this answer Unable to connect to MongoDB compass (barryoneill answer) I found the solution was checking SRV option (I swear I connect just fine without checking it yesterday).