BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 05-11-2011, 10:17 AM   #1 (permalink)
New Member
Join Date: May 2011
Model: Bold
Carrier: COSMOTE
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Localhost TCP/IP connection in BB devices-Tunnel Failure

Please Login to Remove!

Hello everybody.

I have developed two BlackBerry applications which interact each other via TCP/IP Sockets.

The first BlackBerry application runs as server(using

 scn = (ServerSocketConnection)"socket://:"+String.valueOf(port)+";deviceside=true");

and the second is the client (uses the
String url = "socket://" + _screen.getHostFieldText() + ":4000" + (_screen.isDirectTCP() ? ";deviceside=true" : "");
            connection = (StreamConnection);
Both of them can run successfully on JDE 6.0 emulator under Eclipse IDE. The can exchange messages each other.

Unfortunately, they can not run on the real BlackBerry model Bold 9700 (v5.0 OS).
When I run the server application on the BlackBerry device 9700 , I receive the exception "Tunnel failure".

Is it possible two applications to communicate via localhost TCP/IP connection within BlackBerry device? Is it allowed by the OS?

I really appreciate any help.

Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Localhost TCP/IP connection in BB devices-Tunnel Failure
Thread Thread Starter Forum Replies Last Post
Losing Call Logs, SMS or Emails? Optimize your BB! How To Setup for max free memory! John Clark BlackBerry Help 1620 12-31-2012 07:43 AM
Unable to view WebConsole airalex BES Admin Corner 0 09-20-2010 12:00 PM
BB Media Sync Connection Error cmdrbond General 8300 Series Discussion - Curve 17 02-15-2009 12:30 PM
Attachment Service and BB Connect Devices wallsy BES Admin Corner 2 06-25-2008 11:08 PM
Ramble IM Problem (Invalid Connection String: Open tunnel - failure) gqnyc General 8100 Series Discussion - Pearl 2 11-30-2006 08:59 PM

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.