I can't join my dedicated server

I’m hosting a Garry’s Mod Dedicated Server on my PC, and forwarded all the needed ports, but I still get “Connection failed after 4 retries.” when trying to join it. The server worked before, but then I got a new router and now it refuses to work. Everything other than that works fine, the status command works, no console errors, etc. Any help on this?


Nevermind, adding +hostport 27016 +tv_port 27021 fixed it.