Run the client with -Djava.rmi.server.hostname="<inetip>" to allow same network communication.
-Djava.rmi.server.hostname="<inetip>"
Simple Client-Server interaction example using Java RMI