connecting midlet with the server