Hello,
So I have a service hosted in a data centre, that requires a number of TCP ports to be available on the client device network.
I would love to be able to have the my app check whether the ports are open or not before booting up - i.e. are they being blocked by a web filter/firewall etc?
Research so far has lead me to CFStreamCreatePairWithSocketToHost which is working extremely well, as I can connect to the IP/ports in sequence and report back as to which ones are open.
The limitation is that it only allows you to add one IP address in, whereas ideally I would like to provide it with a range.
Can I ask if anyone knows if CFStreamCreatePairWithSocketToHost can scan across an IP range? Am I looking in the wrong place? Any help/support/suggestions would be really greatly appreciated. Many thanks! 🙂