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
New Developer
RaphThie
Posts: 15
Registered: ‎12-23-2008
My Device: Not Specified

Problem creating a Socket Connection

Hello,

 

I trying to do a Socket Connection within a IRC-Client with following line:

 

connector = (StreamConnection)Connector.open("socket://irc.ntalk.de:6667;deviceside=true");

 

The connection can be established with the Simulator. But on my Device i only do get a "Tunnel failed".
I tried every other possibilty (Specifying the APN, with deviceside=false etc). But i am not behind a BES, so this steps were not successful.

 

I realized that there is no APN specified in the Settings, but the APN Settings are activated. Browser, ICQ, Google Maps etc work fine on my device. Just my App can not establish a connection.

 

I do read the:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

 

but it does not help me.

 

Has anyone how i can get this to work correctly?

 

Greetz

Raphael

 

I am Using the newest JDE 4.7 GOLD and i do have a BlackBerry Storm. My Provider is Vodafone Germany.

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Problem creating a Socket Connection

The BlackBerry Browser does not make a direct TCP connection, therefore does not rely on the APN settings.

 

Note that applications are able to specify their own APN information, which could be why some other applications are working.  I recommend you verify the APN required with your carrier and confirm your account has access to connect through it.

 

How To - Specify APN information for a direct TCP connection 
Article Number: DB-00532

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To_...

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