abコマンド(ApacheBench)がapr_socket_connect(): 対象のコンピューターによって拒否されたため、接続できませんでした。 (730061)

Windows10でabコマンド(ApacheBench)でサーバーへの接続をテストしようとすると、エラーとなった。

C:\Apache24\bin>ab -n 100 -c 10 http://localhost/
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...
Test aborted after 10 failures

apr_socket_connect(): 対象のコンピューターによって拒否されたため、接続できませんでした。 (730061)
 SysinternalsSuite\Tcpview.exe で見てみると、あれ、どうやらhttp://localhost/をIPv6アドレスで接続してる。 

ab_command_tcp_ipv6
ApacheをIPv6ではlistenしないようにしたので接続できないわけである。 abコマンドのhttp://localhost/をIP指定http://127.0.0.1/にすることで正常に動作した。

C:\Apache24\bin>ab -n 1 -c 1 <span style="color: #0000ff;">http://127.0.0.1/</span>
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient).....done
Server Software: Apache/2.4.16
Server Hostname: 127.0.0.1
Server Port: 80

Document Path: /
Document Length: 2501 bytes

Concurrency Level: 1
Time taken for tests: 0.018 seconds
Complete requests: 1
Failed requests: 0
Total transferred: 2694 bytes
HTML transferred: 2501 bytes
Requests per second: 57.10 [#/sec] (mean)
Time per request: 17.513 [ms] (mean)
Time per request: 17.513 [ms] (mean, across all concurrent requests)
Transfer rate: 150.22 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 17 17 0.0 17 17
Waiting: 17 17 0.0 17 17
Total: 17 17 0.0 17 17