09-16-2009 05:32 AM
Hi,
I am trying to connect to a remote server through socket connection from Blackberry Pearl 8100 device.
I am not able to connect.
I have set APN name provided by service provider.
Also, i am passing "deviceside=true" in url for direct tcp connection. I am not able to connect to server.
What can be done? Please help...
Solved! Go to Solution.
09-16-2009 05:34 AM
09-16-2009 05:39 AM
09-16-2009 05:43 AM
Any exceptions getting generated?
Is teh remote server you trying to access is on public IP? Is the same code working on Simulator?
09-16-2009 05:47 AM - last edited on 09-16-2009 05:48 AM
IO Exception is thrown. The server has a public IP address. My url is as follows:
"socket://ip : port;deviceside=true";
And through simulator I am able to exchange data successfully.
09-16-2009 05:58 AM
Something like this....
socket://ip
ort;deviceside=true;apn=apn.com;TunnelAuthUsername
TunnelAuthUsername and TunnelAuthPassword is required for few operators.
socket://ip
ort;deviceside=true;apn=apn.com
09-16-2009 06:27 AM
Here are links to the relevant KB articles:
How To - Specify APN information for a direct TCP connection
Article Number: DB-00532
http://www.blackberry.com/knowledgecenterpublic/li
What Is - Different ways to make an HTTP or socket connection
Article Number: DB-00396
http://www.blackberry.com/knowledgecenterpublic/li
09-16-2009 06:30 AM
Hi,
I tried with hardcoding apn name in url,
but still not able to connect...
please help
09-16-2009 06:31 AM
09-16-2009 06:34 AM