×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Can not open socket connection

    Hi,
    This code doesn't work on my phone but it works on emulator. What should the reason be? What should I do?
    SocketConnection sc =
    (SocketConnection)Connector.open("socket://MY_SERVER_IP:1111");

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    8

    Re: Can not open socket connection

    Which phone? Which emulator? Which exception? :-)
    --
    bye Andreas

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Re: Can not open socket connection

    I am using 6630 and I am using Series 60 MIDP Beta 0_3_1_Nokia Edition emulator. I didn't see any exception.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    8

    Re: Can not open socket connection

    So what do you mean then by "not working"?
    --
    bye Andreas

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Re: Can not open socket connection

    I can not send message from client to server...
    it is because of my server don't accept and open a client connection. My program waits at these statements.

    //server side
    SocketConnection sc = (SocketConnection) scn.acceptAndOpen();
    //

    //client side
    SocketConnection sc =
    (SocketConnection)Connector.open("socket://155.223.248.93:1111");
    //

  6. #6
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Re: Can not open socket connection

    client side throws this exception;
    java.io.IOException:SymbianOS error=-33
    I think there is a timeout. What should I do?

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Re: Can not open socket connection

    I made the APN configuration. It throws an IOException SymbianOS Error=-4157. Failed to identify the user. What should I do?

Similar Threads

  1. Keep socket connection open
    By innos in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-12-15, 21:56
  2. How to keep Socket connection open for a time
    By barre30 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-07-22, 09:31
  3. socket connection problem
    By bhatti81 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-08, 14:43
  4. opening a socket connection
    By bhatti81 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2003-07-16, 10:08
  5. PC Sync with 6310i and Socket BT Connection Kit
    By sami_laiho in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-09-17, 05:25

Posting Permissions

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