• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

communication with LAN server through mobile

 
Ikram Soomro
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
how i communicate with LAN server using J2ME
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a "LAN server"? Are you referring to a web server located in a particular Local Area Network?
 
serge masse
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
if you are looking into direct TCP/IP sockets access, then I recommend the Leafy API at http://leafy.dev.java.net/
It contains components to run on the J2ME (MIDP2) mobile and components to install on the J2SE server. You add your own code to process the text exchanged between your nodes. The API takes care of the communication setup. Ideally, communication setup should be with minimum user work and not requiring IT personnel, after the application is installed on the server.
Latest release of the API: 0.7.3
While you may select the port that you want your LAN server to listen on for connection requests from the Leafy-based MIDlet, you must configure your firewall to make that port accessible.
 
Daniel Moore
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way to communicate with the a server is to use the HttpConnection class, request a URL from a server, and have the server return XML, which is parsed by your application. I've used kXML to parse the XML response.
And this article may help out too.
[ December 12, 2003: Message edited by: Daniel Moore ]
[ December 12, 2003: Message edited by: Daniel Moore ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic