I am trying to make a client server communication using sockets. My desktop is the server and mobile is the client.
i made the server in JavaSE by using ServerSocket class and my client in J2ME using connector class and clientSocket as an instance of StreamConnection. i used d following command
String name="socket://";
clientSocket=(StreamConnection)Connector.open(name );

here the ip address and port number i gave is of the server that i created in JavaSE. but the connection is not working.
is there any way i can communicate from my desktop server to the mobile client using socket?
please help!!!