title: How do I point my node.js server to a domain name? (I also use socket.io)
body: <p>This is my server code: </p>
  
  <pre><code>var static = require('node-static');
  var http = require('http');
  var file = new(static.Server)();
  var app = http.createServer(function (req, res) {
    file.serve(req, res);
  }).listen(2013);
  </code></pre>
  
  <p>And then I got a whole bunch more code that has to do with socket.io. 
  I also just registered a domain name at gandi.net. </p>
  
  <p>So, gandi.net gives me an option of entering a DNS. 
  How exactly do I find the right DNS to enter from my computer?</p>
  
  <p>How I usually run it is node server.js on the windows console. Then in the address bar in the browser I just do either localhost:2013 or if I'm accessing it from another device that is on my wifi network, then I look up the ipv4 address by typing ipconfig in the console. And then I enter that address in the other device followed by :2013 for the port. </p>
  
  <p>So how exactly can I run this server with my own domain name?</p>
  
  <p>I know I will be getting an actual permanent server, but for now I just want to know how to run this from my computer. </p>