title: How to open port in Linux
body: <p>I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via command-line, but it is giving connection time out error.</p>
  <p>Then I have tried to open port 8080. I have added following entry into the iptables.</p>
  <blockquote>
  <p>-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT</p>
  </blockquote>
  <p>After adding this into the iptables I have restarted it with -
  <code>/etc/init.d/iptables restart</code></p>
  <p>But still I am not able to access that application from my windows machine.</p>
  <p>Am I doing any mistake or missing something?</p>