title: Determine if Request is Local in Node.js app
body: <p>I am learning Node.js. While creating a web site, I will run the web site locally (on <code>localhost</code>). When it is deployed, it will run on other servers. My question is, how do I determine if a request is from localhost or not in Node? In ASP.NET, I could use <code>Request.IsLocal</code>. I'm trying to figure out how to do that in Node.</p>
  
  <p>Thank you!</p>