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

Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series
$39.98
Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series pictureDELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$216.18
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureOriginal Chunghwa 15" CLAA150XP01QL A+ LCD Screen Display OEM Dell E157FPTe
$45.0
Original Chunghwa 15OEM BULB with Housing for DELL KT74N Projector with 180 Day Warranty
$149.0
OEM BULB with Housing for DELL KT74N Projector with 180 Day Warranty pictureVESA Adapter Plate For Dell E-Series Monitors OEM BBD00 AM1J7000600 NEW
$14.98
VESA Adapter Plate For Dell E-Series Monitors OEM BBD00 AM1J7000600 NEW picture






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