views:

571

answers:

2

Reading among the list of possibilities of the Java ME platform, its possible for a J2ME app running on a mobile to initiate a TCP Socket or HTTP connection with a server.
On similar lines, Is it possible to form a TCP socket connection between two mobile phones?

+2  A: 

You can open a ServerSocketConnection and a SocketConnection on the other side. This allow two way direct communication between two mobile phones. You can look at this page for some more details. But I am not sure about the security requirements and what is allowed and what is not using these classes.

Szere Dyeri
A: 

Not if the server phone is running a J2ME app; J2ME does not support socket server connections. Also beware that many mobile operators do not allow socket server connections to be made on their networks.

funkybro
JSR118 specifies an Interface ServerSocketConnection, you could find more info at http://java.sun.com/javame/reference/apis/jsr118/
Kevin Boyd