Hi, I think this is a more complex question and you should rather look for help on other forums or even Google, because it depends on your operating system.
If you are using Windows, you should go to the config panel and look for firewall settings, to allow X-plane through.