Second: Go to the firewall settings, then just somehow allow the port 5222. Can’t really help you now much, because you didn’t told what firewall are you using.
Well, I don’t use Windows Firewall because I have better, but there should be a way to allow the port 5222. Just try to search the option to allow the ports. Can’t really help you much. Or there is an other way. Disable Windows Firewall, and download different firewall. Fixed.