• Post Reply Bookmark Topic Watch Topic
  • New Topic

client-server communication

 
eve agostini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I'm trying to write a midlet that communicates with a server running on a PC. (with a Socket connection). On the emulator everything works fine. On the phone, the app connects to the server but then it is not able to send any message to it. I tried with different methods.
I tried using writeUTF() and readUTF() on the DataOutputStream and DataInputStream; I tried with a BufferedReader and a PrintWriter and I tried writing directly the bytes on the OutputStream. All the methods works in the emulator, none works on the phone. Have any of you had similar problems?
I'm using a nokia N93 and GPRS for communication
Thanks
Eve
 
Carlos G�mez
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In some telephony companies you can't send messages to some ip addresses
Try to conect with your local network and send the messages
 
Dawei Li
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check whether there was a connect builded between your pc and mobile.
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!