LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2008, 10:04 AM   #1
craftereric
LQ Newbie
 
Registered: Mar 2008
Posts: 21

Rep: Reputation: 15
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
 
Old 08-11-2008, 11:13 AM   #2
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
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?
 
Old 08-11-2008, 11:38 AM   #3
craftereric
LQ Newbie
 
Registered: Mar 2008
Posts: 21

Original Poster
Rep: Reputation: 15
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.

Last edited by craftereric; 08-11-2008 at 01:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
Trying to remote-open a port via PHP TBKDan Linux - Networking 6 11-01-2007 01:50 PM
How do I open a port for Oracle for remote access? koobi Linux - General 0 09-21-2007 04:06 AM
Remote Root Access??? dsschanze Linux - Software 2 09-25-2004 06:04 PM
how to open port 25 for remote machines abd_bela Linux - Security 4 01-30-2003 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration