Connection failed Wireguard VPN

I have installed with PiVPN a VPN using Wireguard. I have been using it for several years and have never had any problems. Now, however, I can’t connect to the vpn server on my raspi 4. I haven’t changed anything in the configuration which has always worked from multiple devices. Lately I have only replaced the router. I don’t know if that is the problem, other connections like ssh or scp or sftp work without problems. I checked wireguard configurations and everything seems ok

Did you update your DDNS IP? Was this done by the old router before? Port forwarding correctly set on the new router?

I solved by enabling udp ports for wireguard on the router to the server machine. I didn’t remember this enabling. Thank you.