Networking doesn't work when packaging project

Hi, I’ve created a udp client in a blueprint using the windows API.
Everything works fine, but when I package the project, it simply doesn’t work, with no error message.
Here’s the code:

https://pastebin.com/ivnBzHMw

Thank you.