I have firewall opened for few ports in my network. I have created one listening port which will just listen for a connection and will create one and again enter into a listening port. I m using boost asio for connection establishment. Listening port is one for which firewall is opened. But the actual port on which connection has been established is assigned by OS. Does OS makes sure the port assigned on actual connection is enabled on firewall or how can I determine that.
Nothing but need to understand how it works