Firewall on PLC is set as static. Firewall contains exceptions for communication on certain ports. These ports won't change if you change for example server ports through IDE. The communication don't have to work properly.
Outgoing communication is not limited.
Incoming communication
Following services are allowed on PLC