Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I can recommend a couple of options, first of all try to check if your firewall, antivirus or router is not blocking or restricting these ports. Also before all this try to use a wired connection to the modem without any switches. Or updating Jabber ...