I had created two midlet one is client and anather one is server.
At client side i written code like this
scn = (ServerSocketConnection)Connector.open("socket://:5000");
// Wait for a connection.
sc = (SocketConnection)scn.acceptAndOpen();
and waiting for a connection to accept.
and at server side
sc = (SocketConnection)Connector.open("socket://localhost:5000");
making a request to client.
and here when i run the application both client and server using two different emulators i am able to send message from server emulator to client emulator.
but when i run the client application via OTA and run the server application
then here i am not able to activate the midlet using server connection even after registering the port.
can any one please help me how to activate a midlet in emulator using socket connection if possible with a small example.