title: Ping does not work in webApi
body: <p>I have created a ping method in both a console application and webapi application. Ping works the console app but not the webapi app. It always is timedout. Here is the code I am using:</p>
  
  <pre><code>namespace Ping.Controllers
  {
      [Route("api/[controller]")]
      public class PingController : Controller
      {
          // GET api/values
          [HttpPost]
          public async Task&lt;IEnumerable&lt;Models.PingItem&gt;&gt; Post([FromBody]List&lt;string&gt; hosts)
          {
              List&lt;Task&lt;Models.PingItem&gt;&gt; tasks = new List&lt;Task&lt;Models.PingItem&gt;&gt;();
  
              foreach (var host in hosts)
              {
                  tasks.Add(Ping(host));
              }
  
              var results = await Task.WhenAll(tasks.ToArray());
  
              return results;
          }
  
          private async Task&lt;Models.PingItem&gt; Ping(string host)
          {
              Models.PingItem pi = new Models.PingItem();
              Ping pingSender = new Ping();
              var result = await pingSender.SendPingAsync(host, 50000);
              pi.Host = host;
              pi.Live = result.Status == IPStatus.Success ? true : false;
              pi.Time = result.RoundtripTime;
              return pi;
          }
      }
  }
  </code></pre>
  
  <p>Any ideas?</p>