send a serializable object over socket
问题 I have a strange problem to send a serializable object that I have created over socket. In fact if I run the server and the client in the same machine it works well but if the server and the client are in different machines the readen object in the server side is empty (with size equal to zero) Any one have an idea to fix that ? (the code is bellow) Server: public static void main () { ... InputStream is = mysocket.getInputStream(); ObjectInputStream ois = new ObjectInputStream(is); ArrayList