title: socket.io binding to a specific ip address
body: <p>I have a windows server running IIS and node.js with socket.io for an interactive whiteboard application I am developing.  I want both the IIS website and node.js server to listen on port 80, but be bound to different IP addresses.</p>
  
  <p>From what I can find, socket.io doesn't have the ability to specify ip address.  This limitation can supposedly be overcome by creating an http server instance.  I'm new to socket.io and node.js and am a little lost trying to do this.  I'll include the original server code (that listens on a specific port) and my attempt to instantiate a server on a specific IP address.</p>
  
  <p>Original</p>
  
  <pre><code>(function() {
    var io;
    io = require('socket.io').listen(80);
    io.sockets.on('connection', function(socket) {
      socket.on('drawClick', function(data) {
        socket.broadcast.emit('draw', {
          x: data.x,
          y: data.y,
          type: data.type
        });
      });
    });
  }).call(this);
  </code></pre>
  
  <p>Modified</p>
  
  <pre><code>(function() {
      var host = "10.70.254.76";
  var port = 80;
  
  var http = require("http").createServer();
  var io = require("socket.io").listen(http);
  
  http.listen(port, host);
  io.sockets.on('connection', function(socket) {
      socket.on('drawClick', function(data) {
          socket.broadcast.emit('draw', {
              x: data.x,
              y: data.y,
              type: data.type
          });
      });
  });
  }).call(this);
  </code></pre>
  
  <p>I get Error: listen EACCES when starting the modified code</p>