Para abrir uma porta personalizada no Firewall do Windows, você pode fazer o seguinte:
- In your Windows Firewall in Control Panel, click on the Advanced Settings option on the left.
- In the Windows Firewall with Advanced Security window that opens, click on the Inbound Rules on the left.
- Click on the New Rule on the right side of the window.
- Select Port on the list of options.
- Select TCP (or UDP if that is what you require) and Specific local ports, and then write your ports in the text box to the right of Specific local ports (i.e. 1234).
- Select Allow the connection in the next window.
- Select the options which you need from Domain, Private, Public (private and public are the network types that you select when you connect to the new network, and windows asks you to select the network type, and domain is obviously your domain).
- Finally, write a Name and Description in the window that shows next. Click FINISH.
Sua porta deve agora ser permitida através do Firewall do Windows.