the app in ipad(ios 18) can not connect to tcp server in the same local network

the app in ipad can not connect to tcp server in the same local network. libinfo check path: unsatisfied (Local network prohibited) reproduce steps:

  1. I update my ipad to iapd iOS/18.0
  2. install the app
  3. make the app connect to tcp server in the windows which is in the same local network.
  4. the ipad trigger Local Network privacy alert
  5. I tap the allow button, I check the toggle of Local Network privacy is on as well
  6. I try to make the app connect to tcp server in the windows again,

but can not connect to tcp server, the ipad system log: nw_path_libinfo_path_check [8F864AB4-C5E1-488D-B396-ECEC2F3FB77E IPv4#0423cc45:9520 tcp, legacy-socket, attribution: developer] libinfo check path: unsatisfied (Local network prohibited), interface: en0[802.11], ipv4, uses wifi 7. I try to make the app connect to tcp server in other windows. It connects successful. the ipad system log: nw_path_libinfo_path_check [C84DC25A-5A14-4080-ABAA-10ED24AE2D6D IPv4#7df62769:9520 tcp, legacy-socket, attribution: developer] libinfo check path: satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi

So please apple developer help investigate why the app can not connect to the tcp sever in the same local network, even though the toggle of local network permission is on in ipad os 18

Is this an app that you’re developing?

Share and Enjoy

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

It’s better if you reply as a reply; if you reply in the comments, I may not see it. See Quinn’s Top Ten DevForums Tips for this and other titbits.

Coming back to your main issue, there are a variety of potential reasons for why this might fail. I explain some of them in the Local Network Privacy FAQ. I recommend that you start by reading that through.

If that doesn’t help, we’ll need more details to offer meaningful advice. Specifically:

  • Is this a general problem? Or have you only seen this on a single device?

  • If it’s a general problem, does deleting and re-installing the app change things?

  • How is your app accessing the network? What networking API are you using? And do you do anything ‘clever’, like target the Wi-Fi interface specifically?

Share and Enjoy

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

the app in ipad(ios 18) can not connect to tcp server in the same local network
 
 
Q