I've been using iperf for some time but at present day i need to use the birectional test using -d or -r in the iperf command. The thing is that i always have "Connect failed: Connection refused" when using more than on thread. The scenario is:
- 2 laptops (192.168.1.20 - Client & 192.168.1.185 Server) (Windows 10 & Windows 8.1). I've also tested changing the server for client. Same results.
- in the server side i launch: iperf -s -w 1MB
- In client side: iperf -c 192.168.1.185 -w 1MB -d -P 5 -L 20000. In server side i receive:
(i've tested this with iperf 2.0.8 and 2.0.9) (CMD windows is opened in Admin mode, just to be sure)
D:\iperf\iperf-2.0.8b-win64>iperf -s -w 1MB
Server listening on TCP port 5001
TCP window size: 1.00 MByte
[ 4] local 192.168.1.185 port 5001 connected with 192.168.1.20 port
2388
Client connecting to 192.168.1.20, TCP port 20000
TCP window size: 1.00 MByte
- [ 9] local 192.168.1.185 port 55098 connected with 192.168.1.20 port 20000
- [ 7] local 192.168.1.185 port 55096 connected with 192.168.1.20 port 20000
- [ 8] local 192.168.1.185 port 55097 connected with 192.168.1.20 port 20000
- [ 6] local 192.168.1.185 port 55095 connected with 192.168.1.20 port 20000
- [ 5] local 192.168.1.185 port 55094 connected with 192.168.1.20 port 20000
- [ 10] local 192.168.1.185 port 5001 connected with 192.168.1.20 port 2390
- [ 16] local 192.168.1.185 port 5001 connected with 192.168.1.20 port 2386
- [ 21] local 192.168.1.185 port 5001 connected with 192.168.1.20 port 2387
- [ 28] local 192.168.1.185 port 5001 connected with 192.168.1.20 port 2389
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- connect failed: Connection refused
- [ ID] Interval Transfer Bandwidth
- [ 9] 0.0-10.0 sec 99.0 MBytes 83.0 Mbits/sec
- [ 7] 0.0-10.0 sec 109 MBytes 91.0 Mbits/sec
- [ 8] 0.0-10.0 sec 110 MBytes 92.1 Mbits/sec
- [ 5] 0.0-10.0 sec 98.9 MBytes 82.8 Mbits/sec
- [ 6] 0.0-10.0 sec 106 MBytes 88.7 Mbits/sec
- [SUM] 0.0-10.0 sec 523 MBytes 437 Mbits/sec
- [ 16] 0.0-13.4 sec 28.9 MBytes 18.1 Mbits/sec
- [ 21] 0.0-13.5 sec 42.8 MBytes 26.5 Mbits/sec
- [ 4] 0.0-13.5 sec 32.1 MBytes 19.9 Mbits/sec
- [ 10] 0.0-13.5 sec 29.0 MBytes 18.0 Mbits/sec
- [ 28] 0.0-13.5 sec 33.4 MBytes 20.7 Mbits/sec
- [SUM] 0.0-13.5 sec 166 MBytes 103 Mbits/sec
- D:\iperf\iperf-2.0.8b-win64>
And in client side i receive:
- D:\iperf\iperf-2.0.8b-win64>iperf -c 192.168.1.185 -w 1MB -P5 -d -L20000
Server listening on TCP port 20000
TCP window size: 1.00 MByte
- [ 9] local 192.168.1.20 port 20000 connected with 192.168.1.185 port 55094
- [ 10] local 192.168.1.20 port 20000 connected with 192.168.1.185 port 55095
- [ 11] local 192.168.1.20 port 20000 connected with 192.168.1.185 port 55096
- [ 12] local 192.168.1.20 port 20000 connected with 192.168.1.185 port 55097
[ 13] local 192.168.1.20 port 20000 connected with 192.168.1.185 port 55098
Client connecting to 192.168.1.185, TCP port 5001
TCP window size: 1.00 MByte
[ 3] local 192.168.1.20 port 2386 connected with 192.168.1.185 port 5001
- [ 4] local 192.168.1.20 port 2387 connected with 192.168.1.185 port 5001
- [ 7] local 192.168.1.20 port 2389 connected with 192.168.1.185 port 5001
- [ 8] local 192.168.1.20 port 2390 connected with 192.168.1.185 port 5001
- [ 5] local 192.168.1.20 port 2388 connected with 192.168.1.185 port 5001
- [ ID] Interval Transfer Bandwidth
- [ 9] 0.0-10.1 sec 98.9 MBytes 81.8 Mbits/sec
- [ 10] 0.0-10.1 sec 106 MBytes 87.8 Mbits/sec
- [ 11] 0.0-10.1 sec 109 MBytes 90.0 Mbits/sec
- [ 12] 0.0-10.1 sec 110 MBytes 91.4 Mbits/sec
- [ 13] 0.0-10.1 sec 99.0 MBytes 82.3 Mbits/sec
- [SUM] 0.0-10.1 sec 523 MBytes 432 Mbits/sec
- [ 3] 0.0-10.0 sec 28.9 MBytes 24.1 Mbits/sec
- [ 4] 0.0-10.0 sec 42.8 MBytes 35.8 Mbits/sec
- [ 7] 0.0-10.0 sec 33.4 MBytes 27.9 Mbits/sec
- [ 8] 0.0-10.0 sec 29.0 MBytes 24.3 Mbits/sec
- [ 5] 0.0-10.0 sec 32.1 MBytes 26.9 Mbits/sec
- [SUM] 0.0-10.0 sec 166 MBytes 139 Mbits/sec
I've checked everything that has passed my mind and nothing. I'm testing the througput between 2 routers. Both routers are connected through WDS, and the ping between bot computers, each connected to one of the routers is correct (iperf works although not 100% correctly). I've put bot laptops in DMZ of router to avoid any port contraints. Alse deactivated SPI firewal available in each router. Both laptops do not have antivirus, and both windows firewall are all deactivated. (Even so just in case i've added an inbound and outbound rule to the program iperf, with no kind of restraints). Also both laptops have the same User session (Same user name, password and both are admins).
But after a couple days, i alwyas have the connection refused. If i launch a basic iperf withouth -P5, i do not have this problem. Can someone give me an idea? Many thanks!!!