×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Question GPRS/WiFi Commincation

    Dear All,
    I have an application on my mobile (PyS60) which should send data (could be a .txt file) to the server PC using GPRS/WiFi. Can somebody help me with some code for both GPRS and WiFi

    Thanks in advance
    Cyan

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: GPRS/WiFi Commincation

    Quote Originally Posted by mt.jijo View Post
    Dear All,
    I have an application on my mobile (PyS60) which should send data (could be a .txt file) to the server PC using GPRS/WiFi. Can somebody help me with some code for both GPRS and WiFi

    Thanks in advance
    Cyan
    hello Cyan

    i think this wiki article will help you if i got you properly.

    Regards
    Gaba88

  3. #3
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: GPRS/WiFi Commincation

    Cyan,

    I am writing several posts related to networking programming. Please, take a look:

    http://wiki.forum.nokia.com/index.ph...us.com.2Fblogs

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Re: GPRS/WiFi Commincation

    can somebody help me with the code for client side (pys60) and server side (.net/php/asp)

    now i am trying this:

    import socket
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    print "connecting"
    sock.connect(("122.166.13.178", 9090))
    print "open ok"
    out = sock.makefile("rw", 0)
    print >> out, "Hi! I’m the TCP client"
    out.close()
    print "Client ok"

    but i am getting an error - connection timed out.
    server address and port number is valid :-)

    thanks in advance
    Cyan
    Last edited by mt.jijo; 2009-06-25 at 08:24.

  5. #5
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: GPRS/WiFi Commincation

    Quote Originally Posted by mt.jijo View Post

    but i am getting an error - connection timed out.
    server address and port number is valid :-)

    thanks in advance
    Cyan
    The message is clear: timeout. Try to:

    0) double check addresses
    1) pre select the access point
    2) if you have enough rights/permissions, check if you can see related frames in your network using some sniffer.
    3 check firewalls on your server machine
    4) check firewalls on your wifi router
    5) show (if you can) the server code

Posting Permissions

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