Direct TCP - Tunnel connection failure

Yes, I already read a lot of discussions with the same problem, but unfortunally, I can't solve my problem.

I tried all this URL

String url = 'socket://url.com:80; deviceside = true; »

String url = "socket://url.com:80; deviceside = true; NPA = apnumt.movistar.com.uy.

and the last one also with "TunnelAuthUserName = movistar; TunnelAuthPassword = movistar.

String url = 'socket://url.com:21; deviceside = true; »

String url = 'socket://url.com:4444; deviceside = true; »

Con StreamConnection = Connector.open (url) (StreamConnection);

or

String url = "http://url.com;deviceside=true;"

String url = "http://url.com;deviceside=true;apn=apnumt.movistar.com.uy".

and the last one also with "TunnelAuthUserName = movistar; TunnelAuthPassword = movistar.

HttpConnection con = Connector.open (url) (HttpConnection)

Yes, I also re-branded the apn, user & password in the options of my camera and I removed also.

Yes, I hava a data plan and my browser work properly.

I've always had "Tunnel fail."

Yes, I hate blackberry.  :/

EDIT: This can be a problem of my data plan?

mmm...

ConnectionFactory cf = new ConnectionFactory();
ConnectionDescriptor cd = cf.getConnection("http://blackberry.com");
final String url = cd.getURL();
HttpConnection con = cd.getConnection();
UiApplication.getUiApplication.invokeLater(new Runnable(){
          public void run(){
                 Dialog.alert(url);
          }
});

And printed to the console:

http://blackberry.com;deviceside=true;ConnectionUID=WAP2 trans2

So, this has been fixed, my browser use wap too.

Tags: BlackBerry Developers

Similar Questions

  • direct tcp socket connection over wifi

    Hi people,

    I am trying to establish a direct connection over wifi with the last 4.7.0 JDE, Simulator tests (9530) and my bb Bold. I am trying to connect with a code similar to the following:

    import javax.microedition.io.Connector;import javax.microedition.io.StreamConnection;
    
    String URL = "socket://192.168.1.88:31339;interface=wifi;deviceside=true";
    
    connection = (StreamConnection)Connector.open(URL);
    

    But I'm not having any luck. I have that (to reading the documentation) this interface addition = wifi & deviceside = true for the connection string was all it takes. Am I missing something obvious here?

    I presume that you have reviewed the video of transport network:

    http://www.BlackBerry.com/DevMediaLibrary/view.do?name=NetworkingTransports

    You'll find that a number of WiFi on the threads on this forum, which contain interesting information.  I suggest that consult you these.  There are others, but I think that your questions are answered in these.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=16000

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=898

  • Settings of the AFN for a direct TCP (3G v.s. GPRS) connection

    Today, I read a lot of articles about the transportation options for the Blackberry network.

    I installed the Tool of Network Diagnostics on my device (BlackBerry 9300 v5.0).

    I'm Tournai on "Mobile network" and disabled the "WiFi". Therefore, my device must use the direct TCP (HTTP protocol) only.

    According to this article, for a cell TCP connection, we need to set up the APN settings, otherwise we will have 'Tunnel failed' error

    http://docs.BlackBerry.com/en/developers/deliverables/21128/Network_transport_options_1293321_11.jsp

    However, without specifying the AFN, I was still able to have labour Direct TCP (HTTP).

    I'm in New Zealand, I tested the Network Diagnostic tool with 2 dgree and vodafone sim cards. Two of them work properly. Two of them are 3 G networks

    However, a lot of people on the internet saying that if they do not specify the APN for GPRS or EDGE networks, they would get the error "failure of Tunnel.

    So, I had the impression that with 3G networks, don't need us to specify the APN.

    I don't know if that's okay?

    One of the really annoying things on the treatment on the Blackberry network is its inconsistency.  I think you've hit one of them.  I saw this in the past with Vodafone, I wasn't sure that this has happened with other networks but maybe so.

    The inconsistency is the following.

    If your connection URL looks like

    http://...; deviceside = true

    If you think that this will force the connection to use the carrier TCP aka Direct TCP.  However, on some phones of brands, including Vodafone, is not correct.  On these phones a connection as it goes actually on WAP.

    To force the direct TCP, you must follow the instructions in this post:

    http://supportforums.BlackBerry.com/T5/Java-development/Vodafone-UK-direct-TCP/m-p/463081#M92387

  • Connection Wi - Fi, direct tcp/ip with the internal IP address

    Hi all

    I hope that someone has been able to do successfully before and knows the answer we've been beating our heads for days on it.  We have read the publication on the wireless Internet, as well as the other threads and tried various implementations without success.

    We strive to open a tcp /ip via the wifi connection to an internal ip address. for example. 192.168.1.99. inevitably the tunnel connection times out.  We tried interface = wifi, deviceside settings, and a combination of two of them.  Of course, they work the Simulator because the Simulator uses the connection IP has the development machine but when we try on a device, the connection times out.

    No one knows the correct way to work to open a connection directly from a particular device;

    (1) the parameters of the call real connector

    (2) settings on the phone. for example, "BOLD" to ensure that it can access the network internal

    Thank you very much

    Resolved - found the problem.  If you put a semicolon at the end of the list of parameters in the url such as:

    "socket://192.168.1.99:3000; interface = wifi; ConnectionTimeout = 15000; »

    This will not return an error or an exception of the Simulator or device but do not do what you expect.  It uses no wifi.  Blackberry setting in this Analyzer does not take into account all the parameters and tries to open the socket with no parameters and thus do not.

    This can be particularly troublesome if you add the parameters programmatically.  There should be an exception that is thrown as invalid or another parameter list, but there isn't.

  • TCP/IP connection ended unexpectedly by the server.

    I had problems with my broadband endangered and turning for a few days and then all of a sudden the following appeared when I turned on my Windows Live Mail

    The TCP/IP connection has been terminated unexpectedly by server

    Your IMAP command could not be sent to the server, due to non-network errors. This could, for example, indicate a lack of memory on your system.

    Configuration:

    Account: Btinternet

    Could someone please tell me if the above interferes with my direct mail and if yes, how should I put it right.

    Hello

    Thanks for posting your query on the Microsoft Community.

    I would be grateful, if you can provide us with the following information to help us better understand the question?

    1. Did you do last changes before this issue on your system?
    2. You use a third-party security software on your system?

    I suggest you to follow the below methods and check.

    Method 1: TCP/IP can sometimes become damaged or altered. We can refer to TCP/IP and check if this solves the problem.

    How to reset the Protocol Internet (TCP/IP)

    http://support.Microsoft.com/kb/299357

     

    Method 2: I suggest you temporarily disable the antivirus software (and other security such as anti-malware software, etc.) and the firewall on the computer and see if that fixes the problem.

    If disabling the antivirus/firewall resolves the issue, you may need to configure the settings of the antivirus as a result program. Please contact the software vendor for assistance in this regard.

    Note: Make sure that you enable the antivirus software, other security and firewall after the test programs.

    Caution:

    Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Hope this information is useful. Please let us know if you need help with Windows.

  • Direct TCP and APN (Please Help)

    Hi, I recently published a music streaming application in the wild. In doing so, I was contacted by a number of international users (outside the U.S.) and was informed that they experience difficulty streaming the songs with my application. I did the fundamental duties that we all go when it's time to connect to our software to the outside world (read post from Peter, reverse engineered the diagnostics utility, watched the public domain HTTP connection factory), and I have it set on the use of a slightly modified version of the factory of HTTP connections in my code.

    It seems to work well enough for users in the United States (a few complaints side), but I'll have almost no success networks such as Telstra, Vodafone, Wind Mobile, etc. I've been Googling autour and heard some people mention that they need to connect through direct TCP with AFN customized to operate on some networks. Has anyone taken the approach of the course of credentials of the AFN and try them one at a time when everything else fails or is it a bad idea? I'd be better to manually enter an APN? I feel that direct TCP uses by default the AFN phone, so no credentials is specified. Is this true and if so, are they reliable these defautls?

    I talked to RIM mount on BIS - B; However, they indicated that it is not practical for my application because of the large amount of bandwidth it consumes. My feelings on the subject at this stage would be better characterized as desperate... Help, please.

    BlackBerry most have not all APN settings configured for direct TCP (or HTTP) under Options-> advanced-> APN. If you want your application to work over direct TCP you can ask your users to configure the APN settings to access the Internet (e.g., APN not = 'internet' and no user name or password for Vodafone UK).

    To make things worse, many users have data plans that do not have access to the Internet (which means non-BIS/BES) non-BlackBerry. In this case, there is no APN settings that make the direct TCP to work. You need to do your users to communicate with their provider and find our if they have Internet access non - BlackBerry and that AFN, they should use for this.

  • Difference between direct TCP & WAP

    Hello

    I'm confused on the difference between 2 Protocol: direct TCP & WAP.

    What really happens for each protocol? What are the differences?

    (Of course the connection string for OpenConection is difference but what the architecture of the network)?

    How does WAP support roaming is not the case for direct TCP?

    Thank you

    Hai

    Ah. If I have understood correctly, you're asking about TCP and WAP as technologies, not on the programming for them.

    I recommend you to read wapforum.org technical WAP white paper to learn more about WAP technology.

    WAP is more than a communications architecture, involving several layers of the OSI model. It defines the protocols at the transport level application; It does not have the network, linking of data or physical layers. Analogue to the TCP WAP worldwide is WTP - Wireless Transaction Protocol. Similarly, WML - Wireless Markup Language - is the equivalent in WAP in HTML format. WAP 2.0 introduced the TCP, IP, and HTTP protocols to WAP.

    Carriers have invested heavily in technology WAP and generally provide strong support throughout their networks. He can't even for TCP/IP directly (although it seems change quickly).

    There is nothing inherent TCP that prevents homelessness; in fact, it has been around for years. My impression is that carriers have just does a better job of integration WAP cellular technology.

    Also, I believe that it can be added cost of data to users for direct TCP using compared to WAP 2.0.

    The sticky thread by Peter Strange looks at some of this. Others on this forum are better informed of what I am and I hope that they will quickly correct any inaccuracies and also provide you with a better answer.

  • Conntecting to webservice using wifi and direct tcp

    Hello

    I am trying to connect to a Web service using ksoap2. How can I connect using wifi and direct tcp? I am able to open a socket connection, but problems using wifi. Any ideas?

    Thank you!

    Kind regards

    M.

    You have the wifi interface parameter in your URL?

    See this knowledge base article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

  • Direct TCP APN question

    Hello

    I recently created a blackberry application that consumes a web service using TCP direct to help our carrier APN. I discovered the AFN in this site: http://forums.pinstack.com/f24/tcp_apn_wap_gateway_and_port_carrier_settings-360/

    However when I asked our tech support carrier, it does not seem to be aware of such a CAMERA. So I'm just confused as to who provides this APN. Is RIM who welcomes direct TCP APN as they do with BIS? And it seems to be free because I was inapplicable to such a service before using it. Hope someone can enlighten me on that.

    Thank you
    Sally

    In my view, a number of carriers don't support direct TCP.  See for example:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&view=by_date_ascending&Messa...

    Some of them also carry all traffic in France through this gateway is the traffic of a browser and they apply to their optimization to the source engine to reduce the data sent over the network.  It will screw you up if you wanted really want has been sent.

    If you are WAP and TCP, I think you're going to cover the majority of cases.  This will tell you how to do WAP 2, without any intervention of the user:

    What - in different ways to establish an HTTP connection or socket
    Article number: DB-00396
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

  • Why TCP tunneling removes the 503 of the asynchronous call WS http response?

    Hi all

    I am facing a weird problem.
    I have developed and tested an asynchronous BPEL process which, among other things, invoke a 3rd party web service.
    It works very well in the development environment.
    When I migrates to the test environment for clients, I get an error http 503 in the BPEL process (the only difference in the BPEL code is WS endpoint).
    Try to understand what happened, I used a tunnel through TCP monitor. This solves the problem!

    So why go through a TCP control running using the BPEL server?
    Continuing with TCP monitor in production is obviously not an option, so not only that I have to understand why using a TCP my help, but also find a way to fix the underlying issue.

    I should mention that I use BPEL version 10.1.3.3, and I've tried the connection between the BPEL server and 3rd party web service and not a problem.

    Any help is very appreciated.
    Kind regards
    Aagaard

    Published by: Aagaard on March 23, 2009 09:48
    In Metalink in "TCP Tunneling the Oracle BPEL Process Manager" (283484.1 document id) it is proposed to change the ownership of the 'opt-SOAP-shortened' in the 'Manage BPEL domian"from false to true if you want to use TCP tunneling.
    I don't see this property in the BPEL console or in the domain.xml file in $ORACLE_HOME/bpel/areas / < used domain > / config.
    This would be part of the problem?
    The BPEL server in the customer test environment is a clone of the BPEL server in our development environment, so I don't see how this could be the problem.

    Just to think logically, he cannot be firewall as SOAP communicates vi the http remote server port. It has nothing to do with the installation of BPEL.

    19313 should be only one communication port.

    The main thing to look at is TCP LUN act as a proxy in some way? My understanding of the app is there's some monitors.

    Also when you test the browser have you disabled all proxies?

    As mentioned above the HTTP503 establishes a connection, but it is unable to complete for some reason such as timeout, which could have been caused, but load.

    see you soon
    James

  • Connection failure: unknown username or bad password

    I use Thunderbird without problem for businesses for nearly eight years. I currently run at the top of a tower with Windows 7 Pro. There is only a single account/e-mail address on Thunderbird.

    This morning when I went to check my e-mail I have my password is requested, then received the error 'sending of password did not. Mail server exchange.company.com replied: connection failure: unknown username or bad password. "I retried the password, restart Thunderbird and tried again, but still not received the same error. I sent an email from Thunderbird test which was very good. I am also able to connect to the server via web browser and I am able to send and receive emails on my mobile device.

    I erased all the saved passwords of Thunderbird and I checked account settings, but I am still unable to download any email Thunderbird.

    Apart from the deletion of the account, I don't really know what to do here. Any help would be appreciated! Thank you.

    The problem has been resolved. Apparently the POP stack had to be reset by the side of the Exchange.

    I hope this helps someone in the future...

  • TCP/IP connection with the external device

    Hello

    I need establish a TCP/IP connection to my hardware device that ip (10.102.20.90) and the port no 9012 by static ip setting.

    Since I'm new to this Protocol, I am a little worried about how to make the communication between my pc hardware. Here my labwindow code to serve clinet and material as a server. Having established the successful connection, I need to read the data coming out of this port.

    Please help me make this communication happens.

    I'm working on version 9.0 of Labwindow.

    A good starting point would be to consider the application for TCP/IP client sample that is bundled with the CVI. You can find it on \samples\tcp\client.cws

    Martin.

  • Open TCP/IP connection failed

    Hello

    I can't establish a TCP/IP connection between my host and another PC. I use the 'Simple data Sever' and 'Customer of data Simple' screw delivered with LabVIEW. Error message is less than

    The example screw working finw when I use them only on my host.

    I can confirm the following:

    • Good serial port
    • Correct skill game
    • The firewall on both computers is OFF

    Any fix ideas?

    Try a port number more than 50000. You use port numbers in user space. 2055 port is assigned to the Iliad-Odyssey Protocol and commplex-link 5001 is assigned. Don't know what eith erof here is or how they are commonly but you might be runnin celine a conflict. Ports 49152-65535 are reserved for dynamic/private use. You can get more information here about IP ports. It's worth a try. The other thing you could do is to install Wireshark on every PC and see if the package (TCP - SYN) is to learn by the client and the server.

  • Establishment of a VISA for a TCP/IP connection

    I'm writing a LabVIEW program that will allow me to recover data in my LeCroy Wavejet 354 and display them in a LabVIEW interface.  I set ACIP of LeCroy passport.  I have a problem ping from the unit so I know that my ethernet to the computer connection is good.  We know do not know how I can use VISA to make the connection for TCP/IP connections. In MAX, the function of remote systems will not detect the IP address of the bezel-o.  I also tried to create a new device under devices and interfaces in MAX and after "create new", he gave me no option to create anything.   You have an example VI that can help me see how VISA can be used to establish this connection or know another way I could get this to work?  Thanks for the help.

    Remote systems is not the right way to add Ethernet instrument. Right click on the device and Interfaces and then left or do a right click on the Create New..., must display the screen below. You want to select VISA TCP/IP resource

  • TCP ip has reached the limit of security imposed on the number of tcp simultaneous connect

    Idle process original title: System, create tcp/ip connections to achieve maximum attempts allowed on win xp
    Continue to event viewer showing warning saying tcp/ip has reached the limit of security imposed on the number of tcp connect attempts simultaneous and system idle process, that's what causes this error.  To many connections 127.0.0.1:6999 127.0.0.1:4426 time_wait

    127.0.0.1:4427 TIME_WAIT
    etc etc etc.

    Hello

    Thanks for asking! If I have understood correctly, you receive tcp ip error message has reached the security limit imposed on the number of simultaneous tcp connect in Event Viewer. I suggest you follow the troubleshooting steps to check if this may help.

    1. don't you make changes on the computer before the show?
    2. when exactly do you face the question?
    3. what anti-virus is installed on the computer?

    Method 1:
    It is a warning that a malicious program or a virus can be run on the system. You can run a Microsoft security scanner to make sure that the computer is free from virus infection:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    WARNING:
    If you run the antivirus program that is infected by the virus scan will get deleted. Therefore, reinstall the program. Also if the files and folders are affected by the virus, while they might even get deleted


    Method 2:
    Check the behavior by starting the computer in a clean boot state. How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353
    Note: When the diagnosis is complete do not forget to reset the computer to a normal startup. Follow step 7 in the above article.

    Method 3:
    Please close some of the connections (some types of downloads can use multiple connections).

    Check out the link:
    http://www.Microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+operating+system&ProdVer=5.2&EvtID=4226&EvtSrc=Tcpip&lcid=1033

    Please follow these recommended steps, review the additional information provided and post if you still experience the problem. I'd be happy to help you more

Maybe you are looking for