I have a java RMI application that works OK when you have it on 2 different Linux machines. Now I do not have the other laptop available to make some new test so I try to put the application on a virtual box in a new machine that have Windows 7. It seems that the application look after the object register in virtual box about 2 minutes and then this exception appear:
java.rmi.ConnectException: Connection refused to host: 192.168.1.48;
nested except and the exception propagates... I already exported the port 1099 from virtual box(i did this because I have the same application done with Linux sockets and C and I needed to export the port(in that case 14555) from virtual machine in order to work).
Any suggestion?