Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-11-2008, 11:04 AM   #1
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 ( and B ( 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 3899 /tmp/psdata_aperia/

debug,connectToService failed: org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 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* LISTEN
nmap -v localhost shows

Starting nmap V. 3.00 ( )
Host localhost.localdomain ( appears to be up ... good.
Initiating SYN Stealth Scan against localhost.localdomain (
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 (
(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 shows
telnet: Unable to connect to remote host: Connection refused
Old 08-11-2008, 12:13 PM   #2
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, 12:38 PM   #3
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 02:29 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 3 03-03-2008 01:15 PM
Trying to remote-open a port via PHP TBKDan Linux - Networking 6 11-01-2007 02:50 PM
How do I open a port for Oracle for remote access? koobi Linux - General 0 09-21-2007 05:06 AM
Remote Root Access??? dsschanze Linux - Software 2 09-25-2004 07:04 PM
how to open port 25 for remote machines abd_bela Linux - Security 4 01-30-2003 09:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 PM.

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