One solution could be using socket technology, It is platform independent, But as you use java on both sides, Then better to use RMI that is an extension for the socket programming.
If your applet could be run on non secure environment you need to consider security as well.