Solved: Resetted the router and found an option that says "Wake up" on the router web page.

Pressed that and I was able to connect.

^~^ Thank you JosephMills for the help