How to open a port in linux when firewall/Iptables is off
Firewall is off, but still not able to telnet to port 9002? can anyone please help me how to open this port with no firewall?
[root@MT-VYGRM-VM12 ~]# service iptables status Firewall is stopped. [root@MT-VYGRM-VM12 ~]# telnet localhost 9002 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused [root@MT-VYGRM-VM12 ~]# nmap localhost Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2014-03-28 16:00 IST Interesting ports on localhost.localdomain (127.0.0.1): Not shown: 1675 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind 631/tcp open ipp 705/tcp open unknown |
Like nmap is telling you, nothing is listening on 127.0.0.1, port 9002, so obviously you can't connect
|
Thanks for your response Chris...
Any idea how can i make 9002 port working without firewall? |
You can block/unblock ports by firewall. But if you want to open any particular port, you need to attach any service/daemon to it. Its like many information counters at airport. If you goto any counter, you need a person on the other side of the counter, so he can *listen* to you. Here counters are ports, and the other person is service/daemon.
So, if you want to open port 80, you install web-server, at which it will install httpd daemon, which will listen on port 80 for any traffic. In Redhat 6, port 9002 is associated with dynamid daemon, i'm not sure to which server its associated with. |
I am installing (OES)Oracle Entitlements Server. Here i am using one script to install it provided by 3rd party.
|
Issue resolved... :)
It was nothing related to port or firewall. There was some mistake in /etc/sysconfig/network |
All times are GMT -5. The time now is 05:05 AM. |