SUGGESTED FIX
There is a easy fix for this problem. Before checking IP address of all network interfaces, check that h=the remote address is loopback address. See the diff below:
--- LocalRMIServerSocketFactory.java.orig 2008-10-01 15:53:58.000000000 +0200
+++ LocalRMIServerSocketFactory.java 2008-09-30 16:50:22.000000000 +0200
@@ -55,6 +55,9 @@
"LocalRMIServerSocketFactory only accept connections " +
"from clients running on the host where the RMI " +
"remote objects have been exported.";
+ if (remoteAddr.isLoopbackAddress()) {
+ return socket;
+ }
// Retrieve all the network interfaces on this host.
Enumeration<NetworkInterface> nis;
try {
|