title: Domain redirect to IP with port iptables
body: <p>I have domain on namecheap and have created subdomain.domain.com and URL redirect to IP:PORT on DNS settings.</p>
  
  <p>But somehow when I make </p>
  
  <p><code>telnet IP PORT</code> request it works</p>
  
  <p>Ouput:</p>
  
  <p><code>telnet IP 2002
  Trying IP...
  Connected to ...
  Escape character is '^]'.
  ???s?"??+s?"Z?2\?v??????????Connection closed by foreign host.</code></p>
  
  <hr>
  
  <p><code>telnet subdomain.domain.com 2002</code> doesn't work.</p>
  
  <p>Output: </p>
  
  <p><code>telnet sub.domain.com 2002`
  Trying ipofdomain...
  telnet: connect to address ipofdomain: Connection refused
  telnet: Unable to connect to remote host</code></p>
  
  <hr>
  
  <p>Anyone can shed some light on how to make it work either on namecheap settings or on other server with iptables, perhaps?</p>