Timeing out when joining server

whenever i join any Gmod server i wait and then 5mins later it says something along the lines of server timed out and it reaptes itself do you have a solution Thank You

Is Windows Firewall set up to allow connections with all the hl2.exe’s in the menu (which can be found under ‘Control Panel’ in the start menu)?

yes it is i tried disabling my firewall as well it did not work