Post

Replies

Boosts

Views

Activity

Reply to NWConnection and "Network is Down" error connecting to ip address and port
@DTS Engineer I can confirm that I can reproduce the problem on my side using your exact same code - which is pretty similar to mine - and using a local http server on my Mac computer. It worked well the first time, then I deleted the app and installed again and did the exact same steps and the issue is reproducible. The only way to fix it is to restart my device. I am on iOS 18.1. Then I tried the same code on an iOS 16 device, I tried the same steps deleting the app three times and I was not able to reproduce the bug on that device. I appreciate your help, Thanks
Nov ’24
Reply to NWConnection and "Network is Down" error connecting to ip address and port
@DTS Engineer / @Eric-L You are right, the issue is still reproducible on iOS 18.1.1
Replies
Boosts
Views
Activity
Dec ’24
Reply to NWConnection and "Network is Down" error connecting to ip address and port
@DTS Engineer It seems that after updating to iOS 18.1.1 the bug is not reproducible anymore. Thanks.
Replies
Boosts
Views
Activity
Dec ’24
Reply to NWConnection and "Network is Down" error connecting to ip address and port
@DTS Engineer I can confirm that I can reproduce the problem on my side using your exact same code - which is pretty similar to mine - and using a local http server on my Mac computer. It worked well the first time, then I deleted the app and installed again and did the exact same steps and the issue is reproducible. The only way to fix it is to restart my device. I am on iOS 18.1. Then I tried the same code on an iOS 16 device, I tried the same steps deleting the app three times and I was not able to reproduce the bug on that device. I appreciate your help, Thanks
Replies
Boosts
Views
Activity
Nov ’24
Reply to NWConnection and "Network is Down" error connecting to ip address and port
@DTS Engineer A couple more things, the bug is reproducible in different iOS 18 devices. I have a very basic sample app which uses NWListener, NWConnection and NWBrowser. The bug is reproducible only when I try to connect to a host & port, but If connect through Bonjour the bug doesn't happen, everything works as expected. Thanks.
Replies
Boosts
Views
Activity
Nov ’24
Reply to NWConnection and "Network is Down" error connecting to ip address and port
Hey @DTS Engineer / @davidprivorostrauss Thank you guys for your answers. I was able to reproduce this problem on an small and basic test app. And regarding your thoughts about iOS 18 I can confirm that the exact same code works wonderfully under iOS 16 - on a different device though. Thanks
Replies
Boosts
Views
Activity
Nov ’24