This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes J2ME Socket Server-Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME Socket Server-Client" Watch "J2ME Socket Server-Client" New topic
Author

J2ME Socket Server-Client

John Gluestorm
Greenhorn

Joined: Jul 30, 2009
Posts: 2
Hi, everyone.

Is there any way to make a socket connection application in J2ME that acts as server and as a client at the same time? If so, please show me how.

Thank you all in advance
Scott Roberts
Greenhorn

Joined: Aug 05, 2009
Posts: 11
Yes you can make TCP/UDP connections as per MIDP2.0 spec.

Have a look at

http://www.java-samples.com/j2me/socket-connection-free-j2me-sample-program.htm
http://www.informit.com/articles/article.aspx?p=131116&seqNum=5

Using the above examples I have tried to make a socket connection, however I haven't had any sucess as yet.
In case you do let me know.

Rdgs,
Harry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2ME Socket Server-Client
 
Similar Threads
html code to webpage
Socket programming using J2ME
javax.microedition.io.ConnectionNotFoundException
Protocol in J2ME
Communication between different protocols