I need to enable the port 7777 from my VPS which runs Ubuntu 11.04, I have added rules from the iptables which is listed here,
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:7777
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:7777
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:7777
However, when I telnet to port 7777, it says connection refused from my side, telnet xx.xx.xx.xx 7777
, even if I telnet on the server with telnet localhost 7777
.
How should I effectively open it to allow connections to port 7777 to my server?