Blackberry http connection problem - blackberry

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?.

Related

Web socket fails on iOS

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

Chrome Devtools Remote IOS Debugging Network Domain Not Found

I am trying to setup remote debugging between a Win 7 laptop running chrome and an Apple iPhone running Safari. I am using chrome-devtools to establish the connection. I am using an ios-webkit-debug-server on the laptop and a python3 local http.server on the iPhone. I can get the laptop to connect and identify the iphone as a remote device. I copy and paste the link to devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/1. I get the following messages. I have tried disablining the firewall but no change. It appears that devtools cannot setup the network logging because it cannot find the network domain.Any help would be appreciated.
iPhone
IOS V12.5.1
Turned Web Inspector On
Start Server with Python3 -m http.server
In Safari (V12.5.1) I navigate to http://localhost:8000/test.html
Laptop
OS is Win 7
I start Powershell 7.1.3 running as administrator (WMF 5.1)
I start "ios-webkit-debug-server -f chrome-devtools://devtools/bundled/inspector.html"
I get Listing devices on :9221
I get Connected :9222 to jim's iPhone (??????...)
On Chrome I navigate to localhost:9221
I get "iOS Devices: 1. localhost:9222 - jim’s iPhone"
I click localhost:9222
I get "Inspectable pages for jim’s iPhone: 1. http://localhost:8000/test.html
I copy and paste "devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/1"
I get following messages (Truncated error messages different commands network domain not found)
-07:27:59:432 Main._createAppUI: 39.85693359375 ms
-07:27:59.472 main.js:1 Main._showAppUI: 44.3681640625 ms
-07:27:59.616 main.js:1 Main._initializeTarget: 34.602783203125 ms
-07:27:59.718 main.js:1 Main._lateInitialization: 0.56689453125 ms
-07:28:00.424 protocol_client.js:1 Request Network.enable failed. {"code":-32601, "message":"
'Network' domain was not found","data":[{"code":-32601,"message":"'Network'domain was not found"}]}

React-Native Could not connect to development server

I've been testing my project on my iPhone6s and it worked perfectly. But today Xcode and Node.js keeps giving me the 'Unable to execute JS call: __fbBatchedBridge is undefined' error.
I'm sure the IP address is correct, my phone is under the same Wifi network with server. The simulator works fine with the server ip. To test if it is something wrong with the project I start another AwesomeProject and changed the IP but still not working. Anyone know any possible solutions?
I faced the same issue in my office Wifi network connection also. This is because of the router configuration. There are two ways to make it work.
Expose the local server using ngrok. But, It will be slow since it is sending everything to server.
Connect your phone using USB cable and type the following command in the computer adb reverce tcp:8081 tcp:8081

Test XCode app running on physical device with local server

I have searched high and low for a solution to this which I am sure must exist but I have failed to find one that works.
I am running XCode 7.3 and iOS 9.2 on an iPhone.
I have a test server running on 127.0.0.1:8000
I cannot get my app running on the iPhone to connect to either 127.0.0.1:8000 or 192.168.1.200:8000 (which is the local ip address of my server).
There must be a way to give the iPhone app access to the local server if only I knew how!
The best solution to this problem, that many app developers have, is to download ngrok which acts as a proxy website.
ngrok is insanely easy to use:
Download from https://ngrok.com/
Run: ngrok http 8000 in terminal (where 8000 is your port)
Cut and paste the displayed ngrok url (e.g. http://a021v2tc.ngrok.io) into your app
So simple. And works!
Check if iPhone connect the same wifi with your server.
You can use Fiddler as iPhone agent to get the detail error message.
There is the link how to capture traffic from IOS device.
here

Connecting to Java Server from iPhone Chat application using Socket

One of my iOS developer is trying to connect to my Chat Application server which is developed using Socket (Java).
When he tries to connect to Server using GCDAsyncSocket during debug I can see readStreamHeader() is executing which is throwing StreamCorruptedException.
Same thing is happening when I do telnet using cmd : telnet localhost 13000
I'm able to connect with my java created client application but not with iOS client. I believe socket in java and in iOS have different way of communication. Please HELP !

Resources