title: Bind Microsoft Azure Function App 2.0 preview to 0.0.0.0
body: <p>I have a Microsoft Azure Function App 2.0 preview written in C# which binds to <a href="http://localhost:7071" rel="nofollow noreferrer">http://localhost:7071</a>.</p>
  
  <p><a href="https://i.stack.imgur.com/9Nuc3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Nuc3.png" alt="enter image description here"></a></p>
  
  <p>How do I get it to bind to 0.0.0.0 instead of localhost so I can access it from another machine on my local network?</p>
  
  <p>Looking at these <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local" rel="nofollow noreferrer">Microsoft Docs</a> I can see how to specify the port in the <code>local.settings.json</code> file
  <code>
  "Host": {
      "LocalHttpPort": 7071, 
      "CORS": "*" 
  }
  </code></p>
  
  <p>But not which Network Interface to use.</p>
  
  <p>Coming from a Rails background I would do this with: <code>rails s -b 0.0.0.0</code></p>
  
  <p>How do I do this in the .net / Azure Function world?</p>