title: Port 8080 not accessible on Linux server
body: <p>I started local server using php on my server . (Trying to work on port 8080/8283 . Anyone of them will do .)</p>
  
  <pre><code>php -S 0.0.0.0 8283 -t testServer/
  </code></pre>
  
  <p>using <code>curl localhost:8283</code> I am able to get the result of the <code>index.php</code> file </p>
  
  <p>but when I access it using my server ip I am not able to access that port .</p>
  
  <p>Any when I do <code>netstat -tuplen</code> . I can see that port as well . </p>
  
  <p><strong>How can I make port 8283 available through http request ?</strong></p>
  
  <p>I asked this question here but not much help .</p>
  
  <p>I have used this</p>
  
  <pre><code># /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8283 -j ACCEPT
  # service iptables save
  # service iptables restart 
  </code></pre>
  
  <p>and still it did not work</p>
  
  <p><strong>And this is output from telnet on my server</strong></p>
  
  <pre><code>telnet XX.XX.X.XXX 8283
  Trying XX.XX.X.XXX...
  Connected to XX.XX.X.XXX.
  Escape character is '^]'.
  GET /
  
  HTTP/0.9 200 OK
  Connection: close
  X-Powered-By: PHP/5.5.19
  Content-type: text/html
  
  Hello World !Connection closed by foreign host.
  </code></pre>
  
  <p><strong>this one is from my PC</strong></p>
  
  <pre><code>telnet XX.XX.X.XXX 8283
  Trying XX.XX.X.XXX...
  telnet: Unable to connect to remote host: No route to host
  </code></pre>
  
  <p><strong>NMAP Result</strong></p>
  
  <pre><code>sudo nmap -p 8283 XX.XX.X.XXX
  
  Starting Nmap 5.21 ( http://nmap.org ) at 2015-02-04 19:18 IST
  Nmap scan report for srv1.domain.com (XX.XX.X.XXX)
  Host is up (0.035s latency).
  PORT     STATE    SERVICE
  8283/tcp filtered unknown
  
  Nmap done: 1 IP address (1 host up) scanned in 0.37 seconds
  </code></pre>
  
  <p><strong>IPTABLES OUTPUT</strong></p>
  
  <pre><code>/sbin/iptables -L -n
  Chain INPUT (policy ACCEPT)
  target     prot opt source               destination         
  ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:8282 
  ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8283 state NEW,ESTABLISHED 
  
  Chain FORWARD (policy ACCEPT)
  target     prot opt source               destination         
  
  Chain OUTPUT (policy ACCEPT)
  target     prot opt source               destination        
  </code></pre>