how to open a port for remote access as root
This is a test environment and I am running as root. (Redhat 3, update 7, Java 1.5_05) I have two machines A (10.17.3.85) and B (10.17.3.87). Machine B has a service running on port 3899 that I would like to connect to from machine A. When the java program is executed from machine A, I get:
java -cp ./PersistenceService.jar com.abc.maxview.persistence.installer.PersistenceInstaller 10.17.3.87 3899 /tmp/psdata_aperia/ debug,connectToService failed: org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 10.17.3.87:3899 vmcid: 0x0 minor code: 0 completed: No org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to .java:103) It appears the 3899 port is not open. I tried opening the port with iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 3899 -j ACCEPT but it did not seem to affect anything. On machine B, netstat -an|grep 3899 shows tcp 0 0 127.0.0.1:3899 0.0.0.0:* LISTEN ========= nmap -v localhost shows Starting nmap V. 3.00 ( www.insecure.org/nmap/ ) Host localhost.localdomain (127.0.0.1) appears to be up ... good. Initiating SYN Stealth Scan against localhost.localdomain (127.0.0.1) Adding open port 8082/tcp Adding open port 22/tcp Adding open port 113/tcp Adding open port 389/tcp Adding open port 8009/tcp Adding open port 6000/tcp Adding open port 80/tcp Adding open port 111/tcp Adding open port 631/tcp The SYN Stealth Scan took 2 seconds to scan 1601 ports. Interesting ports on localhost.localdomain (127.0.0.1): (The 1592 ports scanned but not shown below are in state: closed) Port State Service 22/tcp open ssh 80/tcp open http 111/tcp open sunrpc 113/tcp open auth 389/tcp open ldap 631/tcp open ipp 6000/tcp open X11 8009/tcp open ajp13 8082/tcp open blackice-alerts Nmap run completed -- 1 IP address (1 host up) scanned in 3 seconds ========================== From machine A, telnet 10.17.3.87 shows telnet: Unable to connect to remote host: Connection refused |
My first quess would be to shut off the firewall on both computers. Also are you running a CORBA clien/server? Or just trying to do a TCP connection between the two computers?
|
Thanks for the reply. I failed to state that I am trying to run a CORBA client/server. I would also like simply do a TCP connection between the two macines.
I turned off the firewall of both machines using chkconfig iptables off service iptables save service iptables stop The original problem still remains. |
All times are GMT -5. The time now is 09:01 PM. |