Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

client-server communication

 
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
 
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
 
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.
reply
    Bookmark Topic Watch Topic
  • New Topic