emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
445 stars 194 forks source link

When using jmeter cluster,a host with many ips, can't select the ip to connect to the remote server #101

Open jimmy0 opened 3 years ago

jimmy0 commented 3 years ago

I have a host with many ips: 192.168.0.212, 192.168.0.201 When using jmeter cluster,even though I fix the server ip by -Djava.rmi.server.hostname=192.168.0.201, the ip used to connect to the remote server is 192.168.0.212, not 192.168.0.201, which can by watched out by the command: netstat -ntp | grep 1883 [root@two ~]# netstat -ntp | grep 1883 tcp6 0 0 192.168.0.212:8030 192.168.0.211:1883 ESTABLISHED 64713/java
tcp6 0 0 192.168.0.212:8032 192.168.0.211:1883 ESTABLISHED 64713/java
tcp6 0 0 192.168.0.212:8034 192.168.0.211:1883 ESTABLISHED 64713/java
[root@two ~]#

How can I make the host using 192.168.0.201 to connect the the remote server? Thanks.