BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-11-2011, 09:17 AM   #1
kalgik
New Member
 
Join Date: May 2011
Model: Bold
PIN: N/A
Carrier: COSMOTE
Posts: 1
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 1623 06-30-2022 04:06 PM
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


30 Server/Guest Pager Restaurant Paging System Kit by LRS Long Range Systems picture

30 Server/Guest Pager Restaurant Paging System Kit by LRS Long Range Systems

$175.00



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$180.00



 Compartment Condiment Server Caddy Stainless 5-Tray Bar Fruit BBQ Party Picnic picture

Compartment Condiment Server Caddy Stainless 5-Tray Bar Fruit BBQ Party Picnic

$30.00



Hubbell NXBTC NX Bluetooth Radio Module with Time Server -  picture

Hubbell NXBTC NX Bluetooth Radio Module with Time Server -

$129.99



Wti Console Server + PDU CPM-800-1-EA picture

Wti Console Server + PDU CPM-800-1-EA

$550.00







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