tcp port 12202 not opening on ubuntu EC2 instance

Manjunath Bavihal asked:

I created an EC2 ubuntuu 12.04 instance. i have opened TCP 12202 port through security group console of AWS .But i am unable to open instance port . I tried below commands to open the port .

sudo iptables -F
sudo iptables -A INPUT -d 0/0 -s 0/0 -p tcp –dport 12202 -j ACCEPT
sudo iptables -A INPUT -d 0/0 -s 0/0 -p tcp –sport 12202 -j ACCEPT

. but no result . when i check through nmap . it says port 12202 closed . what would be the cause ?

My answer:


You have no program listening to port 12202. Start the service.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.