Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User nyerunkar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    200
    Hi friends,
    I'm developing socket base application..
    in this application server(PC) & client (cellphone) included.
    i'm writing source code for request from client to server as below...

    Source Code:-


    SocketConnection Socket= (SocketConnection) Connector.open("socket url", Connector.READ_WRITE, false);
    Socket.setSocketOption(SocketConnection.SNDBUF, 65000);
    Socket.setSocketOption(SocketConnection.RCVBUF, 65000);
    Socket.setSocketOption(SocketConnection.KEEPALIVE, 1);
    DataOutputStream DataOutputStream=Socket.openDataOutputStream();
    DataInputStream DataInputStream=Socket.openDataInputStream();
    DataOutputStream.writeInt(9);

    as per above code i'm sending request to server from client .....
    THIS CODE WORKING PROPERLY in EMULATOR but NOT WORKING ON REAL PHONE(actual devices) or RDA ....
    please give suggestion or correct me if i'm wrong

    Thanx & Regards,
    Neel...

  2. #2
    Registered User mihirp's Avatar
    Join Date
    Sep 2010
    Location
    India
    Posts
    61
    you are connecting your application from mobile to server

    is it live ip???

  3. #3
    Registered User nyerunkar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    200
    i'm usign static IP on server for connect
    thanks & Regards.
    Nilesh

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by nyerunkar View Post
    i'm usign static IP on server for connect
    If you are accessing the server using the mobile client then use the public IP, then IP using which the server can be accessed from any where in the world

    Are you able to ping the server from outside your network?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User nyerunkar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    200
    thnk for ur response ..but my problem get solve........
    thanks & Regards.
    Nilesh

Similar Threads

  1. Native Symbian Socket Server & J2ME Socket Client
    By romantr in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2010-04-21, 07:37
  2. Socket server in S60 2.0 emulator and socket client on Windows
    By arpit2agrawal in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-02-10, 22:17
  3. Problem in Sending data using Symbian Socket client to the PC based socket server
    By pankaj.dubey in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-02-26, 15:09
  4. Problem with Java Client Socket with C# Server
    By scottleaw in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-09-25, 06:56
  5. Replies: 1
    Last Post: 2007-09-25, 03:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved