Hi Tomas,
The firewall is down.
[root@ init.d]# ./iptables status
Firewall is stopped.
Main Topics
Browse All TopicsHi,
I have a Java RMI server running on Linux (2.6.18-53.1.4). I can connect via a RMI client on the server.
When I tried to connect via a RMI client on my local machine, I get the following exception:
Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException:
at sun.rmi.transport.tcp.TCPE
at sun.rmi.transport.tcp.TCPC
I've tried the following links:
http://forum.springsource.
But no success.
Thanks for your help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
On linux, you have to explicitly open the port for an remote connection.
You can check if the port is open for a remote connection through
http://www.cyberciti.biz/t
Follow this link to know how to open a port
http://www.linux-noob.com/
[root@]#nmap -sT -O localhost
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
199/tcp open smux
631/tcp open ipp
1521/tcp open oracle
The RMI port is 3081 and it seems to be listening:
[root@]# netstat -napt | grep 3081
tcp 0 0 :::3081 :::* LISTEN 2559/java
I tried to use the command to open the port but it seems i have an other version of iptables?
[root@]# iptables -A INPUT -i eth0 -p tcp --sport 3081 -m state --state NEW,ESTABLISHED -j ACCEPT
Usage: ./iptables {start|stop|restart|condre
Any idea?
Thanks for your help.
Hi!
In your code there is the line
Naming.rebind("rmi://host:
what is the host and port ?
Make sure that your that ifconfig, /etc/hosts and the host in the Naming.rebind are
all to the same hostname/IP address.
http://www.coderanch.com/t
Regards,
Tomas Helgi
Business Accounts
Answer for Membership
by: TomasHelgiPosted on 2009-11-04 at 06:37:00ID: 25739663
Hi!
Have you checked your firewall ?
Does it allow access to your RMI port on localhost from all sources ?
Regards,
Tomas Helgi