title: How to bind a domain name to node.js?
body: <p>I registered a simple domain name for testing on the <strong>dot.tk</strong> site.</p>
  
  <p>Let it be called <strong>mysite.tk</strong>.</p>
  
  <p>I have an application under node.js for simplicity like "Hello World!"</p>
  
  <pre><code>var express = require('express');
  
  var app = express()
  var server = require('http').createServer(app);
  
  app.get('/', function(req, res) {
     res.send('Hello World!')
  });
  server.listen(3000, function () {
     console.log('Port 3000!')
  });
  </code></pre>
  
  <p>On the local server, everything works. That is, on localhost: 3000 one shows "Hello World".</p>
  
  <p><strong>Question: how do I bind my new mysite.tk domain and my server on the computer?</strong></p>
  
  <p>I know that by default when mapping a domain name to an IP address, all traffic should come to port <strong>80</strong>. I do not know, maybe this is the problem. I just use another port 3000 here. Maybe I sould run a proxy server written in node.js that will forward traffic correctly? But how it make?</p>
  
  <p>This solution <a href="https://stackoverflow.com/questions/17516810/how-to-assign-a-domain-name-to-node-js-server">How to assign a domain name to node.js server?</a> I don't understand enough. It did't help me.</p>