×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    20

    Network in Emulator, but not Device

    I have my application doing a basic network connection to an IP with port 5000. While it works perfectly on the emulator, it doesn't seem to do anything on the actual device. It will pull up the access point selection (I've tried a WiFi access point and the cellular data connection) but beyond that it does nothing.

    I have set up a basic TCP listener on my computer to sense any connections and it shows absolutely nothing.

    Any ideas?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,569

    Re: Network in Emulator, but not Device

    Check the result code in the TRequestStatus. Check if you can connect from an other PC. Open TCP port 5000 in your firewall.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    20

    Re: Network in Emulator, but not Device

    Ok if I pull the integer value of istatus after the connection I get a -46 error. What does that mean?

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    20

    Re: Network in Emulator, but not Device

    Found out it was a little bug... thanks for that advice.

  5. #5
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    70

    Re: Network in Emulator, but not Device

    hi i have a similar problem but im using the EchoEngine example as a base, and it works perfect on the Emulator, once installed the App close on startup, says

    Initializing
    Please Wait...

    after thet int close the app

    the EchoEngine code that causes this is
    ---------------------------
    EXPORT_C void CEchoEngine::Write(const TDes& aText)
    // Exported function wrapping call to CEchoWrite: writes character to socket

    all i did to the example was to remove the aConsole parameter as i dont have to use a console in my app, i change every method imp and definition to make it, and as i told before, on the emulator it works with no problem at all

    example "CEchoEngine* CEchoEngine::NewL(MUINotify* aConsole)"

    {
    //In this simple implementation, if iEchoWrite is already active, ignore call.
    //Full implementation would buffer data
    if ((iEngineStatus == EConnected) && !iEchoWrite->IsActive())

    iEchoWrite->IssueWrite(aText);
    }
    -----------------------------

    If I comment the "iEchoWrite->IssueWrite(aText);" line it works on the phone obviusly then it doesnt send a message

    The weird part is that on the emulator this line works and my server get the message

    If you have seen the EchoEngine example and have made it work tell me how please
    Last edited by xchewy; 2008-04-24 at 00:24. Reason: add Info

Similar Threads

  1. access network interface
    By arayappan_it in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-03-29, 12:47
  2. Funambol DM server, E62 and 9500 device manager app
    By rickmorris in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2008-02-26, 05:36
  3. Installing Ethernet Plugin on a second device
    By chenfi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-12-19, 11:40
  4. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •