aiyakuaile / lan_mixed

A lightweight UDP-based LAN communication plugin that supports multicast and unicast, allowing data to be sent and received within a local network.
Other
1 stars 0 forks source link

SocketException on iOS: "No route to host" Error with Plugin #1

Open flutterdevcodiste opened 3 weeks ago

flutterdevcodiste commented 3 weeks ago

I'm facing an issue with the plugin on iOS. It's not working, and I'm getting an error message that says:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 8848

It seems to be related to a failure in sending data over a network socket. Could you please help me understand what exactly the issue might be?

aiyakuaile commented 2 weeks ago

You can add the following permissions in info. plist and try again

<key>NSLocalNetworkUsageDescription</key> <string>the app requires local network permissions to access local services</string>