title: Node.js websocket error "Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL"
body: <p>Application work fine on localhost .but when its connect to server it getting error.<br />
  I connect server through port 22</p>
  
  <p>This is the error</p>
  
  <pre><code>Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL
  at errnoException (net.js:904:11)
  at Server._listen2 (net.js:1023:19)
  at listen (net.js:1064:10)
  at net.js:1146:9
  at dns.js:72:18
  at process._tickCallback (node.js:419:13)
  at Function.Module.runMain (module.js:499:11)
  at startup (node.js:119:16)
  at node.js:906:3
  </code></pre>
  
  <p>Any Help !!!</p>
  
  <p>-update-</p>
  
  <p>i run <code>netstat -tulpn | grep 22</code></p>
  
  <p>Result:</p>
  
  <pre><code> tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      683/sshd
   tcp6       0      0 :::22                   :::*                    LISTEN      683/sshd
  </code></pre>
  
  <p>but i run <code>netstat -tulpn | grep 80</code></p>
  
  <p>Nothing Display.</p>
  
  <p>Any Help.is this server fault?</p>
  
  <p>running <code>netstat -nlt</code></p>
  
  <pre><code>     Active Internet connections (only servers)
       Proto Recv-Q Send-Q Local Address           Foreign Address         State
       tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN
       tcp        0      0 127.0.0.1:5901          0.0.0.0:*               LISTEN
       tcp        0      0 127.0.0.1:5902          0.0.0.0:*               LISTEN
       tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN
       tcp        0      0 0.0.0.0:6002            0.0.0.0:*               LISTEN
       tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
       tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
       tcp6       0      0 :::22                   :::*                    LISTEN
       tcp6       0      0 ::1:631                 :::*                    LISTEN
  </code></pre>
  
  <p>Running <code>netstat -anp | grep :80</code></p>
  
  <pre><code>     tcp        1      0 162.243.145.226:60728   91.189.94.25:80         CLOSE_WAIT  1726/ubuntu-geoip-p
       tcp        1      0 162.243.145.226:47842   74.125.239.148:80       CLOSE_WAIT  8104/epiphany-brows
       tcp        1      0 162.243.145.226:60727   91.189.94.25:80         CLOSE_WAIT  1417/ubuntu-geoip-p
       tcp        1      0 162.243.145.226:58818   198.41.30.199:80        CLOSE_WAIT  8104/epiphany-brows
  </code></pre>