Teamspeak doesn't connect on wifi but on lan

Hi there,

Teamspeak was working safely when I used to have an ADSL router. Later on, I decided to get a VDSL router to improve connection, but I faced an issue which is, whenever I connect to a server on wifi, I timeout after 10 seconds. However, teamspeak servers are all working fine when I am connected lan to the router. Can anyone help me?