Question

cannot open port 8080

hi i am a newbie and i want to open port 8080 . i have added this

iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

in /etc/sysconfig/iptables

and then

service iptables restart

but with no success


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

i’m with the same problem. My output for “iptables -nL” was:

Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination

What’s the output of “iptables -nL”

Hi thanks for the quick response. I have removed the iptables and try to add the line in the config file of iptables as you both stated but i was not successfull in opening the port 8080 .can you plrase let me know the detail steps . thanks a lot for your time and the knowledge you have provided me . I would be really appreciate if you could let me know the steps to open port 8080