Unable to create UDP session with a server

Hi!

I have faced an issue while implementing Network Extension via Packet Tunnel Provider. When the provider tries to create UDP session using createUDPSession method with a server which runs on the same machine, it always got session state as failed. I have tried to host a server on a separate machine. But still the same result.
I have watched the extension logs in Console.
And found next lines:
Code Block swift
nw_socket_connect [C1:1] connectx failed (fd 5) [1: Operation not permitted]
nw_socket_connect connectx failed [1: Operation not permitted]
nw_connection_report_state_with_handler_on_nw_queue [C1] reporting state failed error Operation not permitted

Could it be problem with entitlements? Do I need some additional configurations to be able to create session with a server.

Thank you for any help!
What platform are you targeting?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Unable to create UDP session with a server
 
 
Q