Multipeer connectivity not working due to Local network permission in iOS 18

Hello, I have been testing my app in iOS 18 device and while creating a server with TCP, then apple make a request for local network permission automatically. If we don't allow the permission, the connection not working. We are getting the connection timeout error even after allowing again from device setting.

Has something changed in the flow for iOS 18 version? Can someone help me to solve this issue?

You mentioned “TCP” and your post’s subject references “Multipeer connectivity”. This is confusing, because Multipeer Connectivity doesn’t use TCP. So what API are you using for your networking?

And are you listening for inbound connections? Or making outbound connections?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Multipeer connectivity not working due to Local network permission in iOS 18
 
 
Q