title: JMeter with remote servers
body: <p>I'm trying to setup JMeter in a distributed mode.
  I have a server running on an ec2 intance, and I want the master to run on my local computer.
  I had to jump through some hopes to get RMI working correctly on the server but was solved with setting the "java.rmi.server.hostname" to the IP of the ec2 instance.</p>
  
  <p>The next (and hopefully last) problem is the server communicating back to the master.</p>
  
  <p>The problem is that because I am doing this from an internal network, the master is sending its local/internal ip address (192.168.1.XXX) when it should be sending back the IP of my external connection (92.XXX.XXX.XXX).</p>
  
  <p>I can see this in the jmeter-server.log:</p>
  
  <blockquote>
    <p>ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectException: Connection refused to host: 192.168.1.50; nested exception is: </p>
  </blockquote>
  
  <p>That host IP is wrong. It should be the 92.XXX.XXX.XX address. I assume this is because in the master logs I see the following:</p>
  
  <blockquote>
    <p>2012/07/29 20:45:25 INFO  - jmeter.JMeter: IP: 192.168.1.50 Name: XXXXXX.local FullName: 192.168.1.50 </p>
  </blockquote>
  
  <p>And this IP is sent to the server during RMI setup.</p>
  
  <p>So I think I have two options:</p>
  
  <ol>
  <li>Tell the master to send the external IP</li>
  <li>Tell the server to connect on the external IP of the master.</li>
  </ol>
  
  <p>But I can't see where to set these commands.</p>
  
  <p>Any help would be useful. </p>