This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am connecting Windows and Linux machine thru Java RMI. and my server files are in Linux Server. when I connect Linux machine(188.8.131.52) thru Java on Windows It is showing error: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information although I have given the ip-address of the linux machine(here it is 184.108.40.206). The error is Connection refused to host: 127.0.0.1 and I haven't mentioned 127.0.0.1 or localhost any where in the program
it looks like your problem is the server address. Your exception says the connection is refudes to 127.0.0.1 (loopback) not you linux box IP. You've stated the problem yourself. Here's is the code I use to connect to the server from the client:
Maybe you can compare that to yours and get it working. Chris