简体   繁体   中英

Check Reachability of Secure Connection on custom Port on iPhone?

i want to check if an Secure-Connection to an IP-Adress and an custom Port is possible. I checked the Reachability Sample from Apple, but with this i can only check if a Host is reachable.

Any ideas?

Thank you

The reachability API is primarily focused on the status of the device's network interfaces, not whether a particular host is available to talk.

The only way to test availability of an IP address and port is to try to establish a connection. Nevertheless, you can integrate it with the reachability API so that you only attempt to connect when there is an interface (wi-fi or cell) that can reach that host.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM