This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'm using RMIIO to send a file from a client to the server. My code is as follows:
1. On the client I create a SimpleRemoteInputStream and export it to the server. 2. On the server I read the SimpleRemoteInputStream and save it to a file. That works fine when the firewall is off, but when the firewall is on then it doesn't. I have been using Wireshark to monitor the port which the server (now the client) is trying to communicate back with the client (now server) on and each time it's different.
The docs at http://openhms.sourceforge.net/rmiio/faq.html#firewall state that the port that the RMIIO server exports objects on can be set by setting a system property called com.healthmarketscience.rmiio.exporter.port. I have tried setting this by doing java -Dcom.healthmarketscience.rmiio.exporter.port=xxxx MyProgram but it does not work.
I am new to RMMIO and I may be missing something. For example the docs state that setting the port only works when using the "default RemoteStreamExporter." but I'm not even sure if I'm doing that. Can anyone please shed some light?
[ October 21, 2008: Message edited by: ernest fakudze ] [ October 21, 2008: Message edited by: ernest fakudze ]
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer