My code attempts to create a websocket connection.
It works on Windows, Mac and Ubuntu and on Safari, Firefox, Chrome and Edge.
It does not work on iOS (iPhone and iPad) and I have tested this failure on Safari and Chrome only. I guess it may not work for other browsers on iOS too.
I get the following error on iPad:
error: Websocket connection to 'wss://XXXX' failed: The operation could not be completed. (kNWErrorDomainPOSIX error 14 - Bad address).
On iPhone it gives a slightly different error:
error: Websocket connection to 'wss://XXXX' failed: The operation could not be completed. kNWErrorDomainPOSIX error 100 - Protocol error.
Where XXXX is a valid network address (domain name / remote IP / local network IP).
Try entering a servers local ip address http://192.168.xx.xx:PORT and make sure both devices are on same local network
Related
I wrote app and it's working on Android, Android emulator, iOS emulator but not working on iOS device. It works previously, but I do not test it for a lot of days and now I cannot do it. When I run app, I see splash screen and nothing else happen for a lot of minutes. There is no error, but I see in VSC console:
Connecting to the VM Service is taking longer than expected...
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
Exception attempting to connect to the VM Service: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 52448
This was attempt #50. Will retry in 0:00:01.600000.
Exception attempting to connect to the VM Service: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 52559
This was attempt #100. Will retry in 0:00:01.600000.
Exception attempting to connect to the VM Service: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 52660
This was attempt #150. Will retry in 0:00:01.600000.
I have a REST service running on my host. I can perform an HTTP request to this service from my flutter app when running on the iOS simulator using the code below:
final response = await http.get('http://localhost:8085/my/service');
However, it fails when I'm running the app on my iOS device. My device is connected via USB.
Runner[574:66922] flutter: Error SocketException: OS Error: Connection refused, errno = 61, address = localhost, port = 49575
What do I need to configure to connect to localhost from my iOS device?
I've already disabled in iTunes -> Summary "Sync with this iPad over Wi-Fi".
instead of localhost you can use your current ip
to get it In the command window type: ipconfig
Note that you must be on the same network
The error I am receiving is: Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in RCTWebSocketExecutor.m
I have tried changing from localhost to my computer's ip address as mentioned in other stackoverflow post's but it still doesn't seem to be working.
I did install Opennms in a VM Ubuntu on PROXMOX. Everything went well until I did change the interface IP address because the VM must work in a LAN without Internet access. Since then the opennms start correctly but the browser give me the error:
Jetty: HTTP ERROR: 503
Problem accessing /opennms/. Reason:
Service Unavailable
The problem seems to be related with the connection to Internet at the starting of opennms. When I start opens without Internet connection the server do to start correctly.
OpenNMS has a bugfix that may take care of it.
http://issues.opennms.org/browse/NMS-7683
My app uses an http connection to a server.
On the 9550 BlackBerry simulator, it runs fine but when I run it on an 8520 simulator it gives the error
java.io.IOException:Tunnel Failed.
Why is this happening?
Have a look at these StackOverflow topics:
Tunnel Failed, BlackBerry Curve 8900
Are socket connections faster than http on Blackberry?.