[ad_1]
Based on flutter-dev I attempt to run dart code ( similar as shelf-example bin/server.dart ) .
It really works on my Android machine, as a result of after I run curl -v "http://{my Android machine LAN ip}:8080/helloworld", my Android machine return Hiya, World! shortly.
However when it runs on my iPhone12 (iOS 16.0.2), after I run curl -v "http://{my iOS machine LAN ip}:8080/helloworld", curl will elevate error under
* Making an attempt {my iOS machine LAN ip}:8080...
* connect with {my iOS machine LAN ip} port 8080 failed: Operation timed out
* Failed to hook up with {my iOS machine LAN ip} port 8080 after 75004 ms: Operation timed out
* Closing connection 0
curl: (28) Failed to hook up with {my iOS machine LAN ip} port 8080 after 75004 ms: Operation timed out
ping {my iOS machine LAN ip} is okay
PING {my iOS machine LAN ip} ({my iOS machine LAN ip}): 56 information bytes
64 bytes from {my iOS machine LAN ip}: icmp_seq=0 ttl=64 time=249.370 ms
64 bytes from {my iOS machine LAN ip}: icmp_seq=1 ttl=64 time=171.025 ms
64 bytes from {my iOS machine LAN ip}: icmp_seq=2 ttl=64 time=92.354 ms
telnet different port (equivalent to 8081) will abruptly elevate error Connection refused, when 8080 will wait some time and lift error Operation timed out.
So I believe the dart code half is okay, however some essential community config have to set.
So I’ve tried so as to add textual content bellow in Information-Debug.plist and Information-Launch.plist but it surely not works.
<key>NSLocalNetworkUsageDescription</key>
<string>Desp</string>
<key>NSBonjourServices</key>
<array>
<string>_dartobservatory._tcp</string>
</array>
Is there any facet I have not thought of? Any suggestion is appreciated.
[ad_2]
