Fixed problem with UDP scanning on iOS. New code tested on iOS and Android