隧道失败,黑莓8900 [英] Tunnel Failed, BlackBerry Curve 8900

查看:97
本文介绍了隧道失败,黑莓8900的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有通过网络发送TCP消息到驻留在相同的内部网络上的服务器的MIDlet。
每当我尝试使用这种线连接:

I have a MIDlet that sends TCP messages over the network to a server residing on the same internal network. Whenever I try to connect using this line:

StreamConnection writeSock = (StreamConnection) Connector.open("socket://" + serverIp + ":" + serverPort, Connector.READ_WRITE);

我得到一个错误说

I get an error saying

隧道失败

据netstat的,对其中的服务器设置为监听的端口实际上是开放的,在聆听模式。我从移动应用打印的IP和端口值,他们似乎是正确的。
我期待在互联网上,很多人通过设立自己的APN细节解决了这个问题。我做这样的事情,问题仍然存在。我不知道我有什么下一步该怎么做。只是为了检查目的,这些都是APN细节我进入:

According to netstat, the port on which the server is set to listen is actually open and in listening mode. I printed the IP and Port values from the mobile application and they seem to be correct. I have looked on the internet and many people solved the problem by setting up their APN details. I did such a thing, and the problem still persists. I have no clue what I have to do next. Just for checking purposes, these are the APN details I entered:

APN:互联网
用户名APN:互联网
密码APN:网络

APN: internet Username for APN: internet Password for APN: internet

我的载体是沃达丰马耳他。正如一个侧面说明,这个应用程序的零件也模拟器。我使用的是默认的仿真器(DefaultFxPhone1)自带的J2ME包,而我使用NetBeans 6.8。

My carrier is Vodafone Malta. Just as a side note, this part of the application works on an emulator. I am using a default emulator (DefaultFxPhone1) that comes with the j2me package, and I am using Netbeans 6.8.

我曾尝试启用和禁用防火墙,但无济于事。

I have tried enabling and disabling the firewall, but to no avail.

先谢谢了。

推荐答案

您可能还需要考虑尝试添加; deviceside =真正的参数设置为连接字符串的结尾。默认为false,这意味着MDS(BES基础设施)。要做到在APN直接的TCP,您需要将其设置为true。

You may also want to consider trying adding the ";deviceside=true" parameter to the end of the connection string. The default is false, which implies MDS (BES infrastructure). To do direct TCP over the APN, you need to set it to true.

这篇关于隧道失败,黑莓8900的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆