OS: Redhat 3, update 7
I have a Java server program that is running and listening on port 3899 of machine B. On machine B, netstat -an|grep 3899
tcp 0 0 127.0.0.1:3899 0.0.0.0:* LISTEN
However, on machine B, 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
My question is:
What do I need to do so that port 3899 will show up in the nmap list above as OPEN.
I tried iptables -I INPUT -p tcp --dport 3899 -j ACCEPT with no success.
I am trying to troubleshoot a Linux problem in which I cannot use a client to run this program remotely from a different server, machine A. The connection is always refused. Note that on two Windows machines, things run successfully.
redhat-configure-securitylevel shows that the firewall is enabled. I tried disabling with no success.
Any suggestions for troubleshooting this are appreciated. I am out of ideas.