title: Listener for Azure function was unable to start error while running Azure function app locally. How to solve this?
body: <p>I have one Azure function app. I am trying to run that locally but getting the below error. I have the storage emulator up and running.
  <a href="https://i.stack.imgur.com/8ypPo.png" rel="nofollow noreferrer">Storage emulator status</a></p>
  <p><a href="https://i.stack.imgur.com/UsMpI.png" rel="nofollow noreferrer">Storage emulator status</a></p>
  <p>I am not sure why it is complaining about 10000 port because my storage emulator is running on 12000,12001, 12002 respectively for blob, queue, table.</p>
  <p>Local host file is like below,</p>
  <pre><code>{
    &quot;IsEncrypted&quot;: false,
    &quot;Values&quot;: {
      &quot;AzureWebJobsStorage&quot;: &quot;UseDevelopmentStorage=true&quot;,
      &quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet&quot;
  }
  }
  </code></pre>
  <p>Getting the below error at runtime. Can you pls guide me how the issue can be solved to run the function app locally?</p>
  <p>The listener for function 'ABCFunction' was unable to start. Azure.Core: Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)). Azure.Core: No connection could be made because the target machine actively refused it. (127.0.0.1:10000). System.Net.Http: No connection could be made because the target machine actively refused it.</p>