Post

Replies

Boosts

Views

Activity

iOS 14 NWListener port 55555 ERROR
In our app we listen on port 55555 in udp to look for some devices that send packets with some info of the device. The devices are in production and we cannot change port. With iOS 14 port 55555 always has an error "already in use". All other port works and with iOS 13 too. Our app have entitlement com.apple.developer.networking.multicast. class ViewController: UIViewController {     var udpListener:NWListener?     var backgroundQueueUdpListener   = DispatchQueue(label: "udp.bg.queue", attributes: [])     override func viewDidLoad() {         super.viewDidLoad()         let params = NWParameters.udp         udpListener = try? NWListener(using: params, on: 55555)         self.udpListener?.stateUpdateHandler = { _ in         }         self.udpListener?.newConnectionHandler = { _ in         }         udpListener?.start(queue: self.backgroundQueueUdpListener)     } } ERROR: nwpathevaluatorevaluate NECPCLIENTACTIONADD error [48: Address already in use]
1
0
777
Sep ’20