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

Vintage WESTON Model 749 A-C Volt Ammeter w/ Leather Case & Accessories PRISTINE
$39.99
Vintage WESTON Model 749 A-C Volt Ammeter w/ Leather Case & Accessories PRISTINE picturePro DC4-30V Dual LED Digital Voltmeter Ammeter Panel Voltage Current Tester
$3.29
Pro DC4-30V Dual LED Digital Voltmeter Ammeter Panel Voltage Current Tester pictureXL-830L LCD Voltmeter Ammeter AC DC Ohm Volt Current Tester Digital Multimeter
$13.99
XL-830L LCD Voltmeter Ammeter AC DC Ohm Volt Current Tester Digital Multimeter pictureSave Now 6V-8A Ammeter C/W Bulb For Royal Enfield
$16.99
Save Now 6V-8A Ammeter C/W Bulb For Royal Enfield pictureTOP Amp Volt Meter + Current Shunt DC 100V 100A Digital Voltmeter Ammeter LED
$7.5
TOP Amp Volt Meter + Current Shunt DC 100V 100A Digital Voltmeter Ammeter LED picture






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