it's possible to get the own socket port for NWConnection?
I open a network connection and will find out the used port on this created socket.
My example code:
Code Block let queue = DispatchQueue(label: "UDP data thread") let connection = NWConnection(host: "1.2.3.4", port: 40000, using: .udp) connection.start(queue: queue)
IMHO it's totally simple code. Now I want to now the used socket port for my connection.
Where I can read this information? Many thanks.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com