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)
scn = (ServerSocketConnection)
and the second is the client (uses the javax.microedition.io.Connector).
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.