I am trying to know if a specific address and port are enable and reachability before to start to get data. Unfortunately I found a lot of examples but only verify if Wifi is enable. I need an answer in Swift 3 with port and address, not only and address. Any idea ? Thanks in advance.
Asked
Active
Viewed 173 times
0
-
That is not what the Reachability API is for. You should just try to connect to the host and port. Apple's network programming guide can help you with that. – Martin R Dec 28 '16 at 17:26
-
Possible duplicate of http://stackoverflow.com/questions/5886788/iphone-reachability-test-for-specific-ip-port. – Martin R Dec 28 '16 at 17:27