I have a VPS for Apples push notification service I am trying to open a port 2195. I am currently doing this
then I go to insert mode of vi and enter these two lines
-A -I INPUT -p tcp --dport 2195 -j ACCEPT -A -I OUTPUT -p tcp --dport 2195 -j ACCEPT
then I save the file and quit vi.
Then I restart iptables service by
service iptables restart.
But after that when I try to telnet by doing
telnet localhost 2195
I get this
Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
Server is red hat on hostgator