An
RMISocketFactory
instance is used by the RMI runtime in order to obtain client and server sockets for RMI calls. An application may use the
setSocketFactory
method to request that the RMI runtime use its socket factory instance instead of the default implementation.
The default socket factory implementation creates a direct socket connection to the remote host.
The default socket factory implementation creates server sockets that are bound to the wildcard address, which accepts requests from all network interfaces.