BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-11-2011, 09:17 AM   #1 (permalink)
New Member
 
Join Date: May 2011
Model: Bold
PIN: N/A
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 javax.microedition.io.ServerSocketConnection)

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

and the second is the client (uses the javax.microedition.io.Connector).
Code:
String url = "socket://" + _screen.getHostFieldText() + ":4000" + (_screen.isDirectTCP() ? ";deviceside=true" : "");
            connection = (StreamConnection)Connector.open(url);
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.

Regards,
kalgik
Offline  
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 11:00 AM
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 10:08 PM
Ramble IM Problem (Invalid Connection String: Open tunnel - failure) gqnyc General 8100 Series Discussion - Pearl 2 11-30-2006 08:59 PM

Windsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction
$500.0
Windsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction picture8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era
$9.95
8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era pictureNEW 8x FUJITSU MB8264A -15 DRAM 64kx1 164 4864 IC Apple II Commodore Oric IBM PC
$11.11
NEW 8x FUJITSU MB8264A -15 DRAM 64kx1 164 4864 IC Apple II Commodore Oric IBM PC picturecommodore 610 sx64 65 pet max Ersatzpflege vintage computer Es funktioniert
$1300.0
commodore 610    sx64 65 pet max Ersatzpflege vintage computer Es funktioniert  pictureComfort Products Inc. - Commodore II Big & Tall Leather Executive Chair - Black
$279.99
Comfort Products Inc. - Commodore II Big & Tall Leather Executive Chair - Black picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.