1

I'm trying to check if a Host is available in Swift, I am using Apple's Reachability, but I can't get it to work giving it an IP Address and Port, I think my problem is that this requires a struct for the address or something, can somebody please explain / lead me into the right way to do this?

Thanks!

mtflud
  • 866
  • 8
  • 7

1 Answers1

1

for a drop in solution in Swift, you might want to take a look here:

https://github.com/ashleymills/Reachability.swift

There are a couple of unsolved issues to (see README), but apart from that it works pretty well.

Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
  • Hi! Does this works to check for reachability on a specific host address/name? If so, can you please provide an example? I've read the documentation and looked into the example, but couldn't find any way to do this. Thanks! – mtflud Feb 21 '15 at 18:06