Hey Quinn! Thank you for your answer!
I tried running both commands you provided.
First one returns the plist with my entitlement, so that's fine.
Archived project has the
embedded.mobileprovision file which also includes the entitlement.
Assume
NWConnectionGroup it is strong referenced and not deallocated going forward.
Also I get messages from devices in the network when they publish themselves but not when I send my package. I tried packet capturing and I can confirm that messages are being sent and my router responds with the response.
It works with a different app from the App-Store, they are using the upnpx library. Using the open source library
BlueSocket works as-well, but I am trying to stick to the
Network framework.
Data captured from reference app:
Code Block 15:42:35.873001 IP 192.168.1.47.59611 > 239.255.255.250.1900: UDP, length 157 |
15:42:35.927494 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 438 |
15:42:35.927501 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 406 |
15:42:35.927503 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 426 |
15:42:35.927504 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 430 |
15:42:35.927505 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 358 |
15:42:35.927506 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 367 |
15:42:35.927507 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 367 |
15:42:35.927508 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 367 |
15:42:35.927510 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 422 |
15:42:35.927511 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 422 |
15:42:35.927512 IP 192.168.1.1.1900 > 192.168.1.47.59611: UDP, length 420 |
Data captured from my app:
Code Block 15:42:53.975416 IP 192.168.1.47.57367 > 239.255.255.250.1900: UDP, length 94 |
15:42:54.032783 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 367 |
15:42:54.032788 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 367 |
15:42:54.032790 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 367 |
15:42:54.032791 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 422 |
15:42:54.032793 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 422 |
15:42:54.032794 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 420 |
15:42:54.032795 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 438 |
15:42:54.032796 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 406 |
15:42:54.032798 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 426 |
15:42:54.032800 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 430 |
15:42:54.032801 IP 192.168.1.1.1900 > 192.168.1.47.57367: UDP, length 358 |
According to the logs, I am able to send multicast packets
Seems like remote peer does respond
I do, for some reason, do not receive the response