Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch
Accepted Solution

HTTP connection fails consistently with dns and tunnel errors

I have read this article:

http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-make-an-HTTP-or-socket-con...

 

I want to connect to a url through http but I consistently get DNSException or tunnel failure. I tried all sorts of connection string suffixes = ";deviceside=true" , ";deviceside=false", ";deviceside=true;apn=apn i got from the service book which was 'blackberry.net'" , "";deviceside=true;ConnectionUID="again what i found in the service book using the method from the article".

The device is bold 9780 with data plan. I can open the url from the web browser

The same code works on bold 9000 without errors and I can access the url

Any suggestions

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: HTTP connection fails consistently with dns and tunnel errors

Are you using the same SIM card in both devices?  Please provide the exact errors and exceptions you are receiving along with the connection route being attempted.  Have you tried running the network diagnostic tool available here?  http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-O...

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 123
Registered: ‎07-08-2011
My Device: Torch 9800, Bold 9700
My Carrier: Bell, Rogers

Re: HTTP connection fails consistently with dns and tunnel errors

Are the APN settings correct on the phone that fails? This I believe is required for third party apps to work. Also do third party apps with network access work correctly.

 

 

Berobo Inc.
Police Scanner Radio / Alarm Clock lets you listen to Police scanners in your area!
http://www.berobo.com
_________________________________________________
Please click the Like button to thank the user that has helped you and
please mark post as solved when you have found the solution to your problem.
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: HTTP connection fails consistently with dns and tunnel errors

It turned out that you cannot create connection during a phone call, all connection attempts fail after the timeout is reached and after the phone call is ended the connections are successful.

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: HTTP connection fails consistently with dns and tunnel errors

[ Edited ]

"you cannot create connection during a phone call"

 

I am not an expert on this, but I suspect this is a restriction on older, non 3G devices only and I would suggest that newer devices can, assuming they are using the appropriate connection, talk data and voice at the same time. 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: HTTP connection fails consistently with dns and tunnel errors

2G+wifi or 3G allows data connection during a phone call.
you can use the CoverageInfo class to check the connection status during a phone call.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: HTTP connection fails consistently with dns and tunnel errors

2G EDGE can allow network connections during a phone call if the carrier has enabled this on their network.  It's also important to note that some carriers enable this in some areas but not others.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker