1 Reply Latest reply: Oct 11, 2010 10:38 AM by 762917 RSS

    Problem with socket connection in midp 2.0

      hello everyone.
      I'm new one in j2me and I am learning socket connection in j2me. I'm using basic socket,datagram example wich is come with sun java wireless toolkit 2.5. for it i wrote small socket server program on c# and tested it example on my pc and its working fine. also socket server from another computer via internet working fine. But when i instal this socket example into my phone on nokia n78 (Also on nokia 5800) it's not working didn't connect to socket server.. On phone I'm using wi-fi internet. Can anybody help me with this problem? I hear it's need to modify manifest file and set appreciate pressions like this
      MIDlet-Permissions: javax.microedition.io.Connector.socket,javax.microedition.io.Connector.file.write,javax.microedition.io.Connector.ssl,javax.microedition.io.Connector.file.read,javax.microedition.io.Connector.http,javax.microedition.io.Connector.https
      is it true?
      can anybody suggest me how can i solve this problem?
      where can I read full information about socket connection specifiecs in j2me?
        • 1. Re: Problem with socket connection in midp 2.0
          Maybe this can be helpful:


          you can check there the Datagram interface anda DatagramConnection interface and learn a little about that.

          If the client example runs fine in the wireless toolkit emulator, it should run the same way in your phone; i suggest to try to catch some exception that maybe is hapenning and display it on a Alert screen, this in the phone.