title: Jmeter remote connection throwing "Connection refused to host"
body: <p>I setup a distributed load testing environment using JMeter in unbundu machines.</p>
  
  <p>->Master: the system running JMeter GUI, control each slave.</p>
  
  <p>->Slave: the system running jmeter-server, receive command from the master and send a request to server under test.</p>
  
  <p>->Target: the web server under test, get request from slaves.</p>
  
  <h2> Basic requirements are done:</h2>
  
  <p>-The firewalls on the systems are turned off</p>
  
  <p>-All the planned master and Slaves are in the same subnet</p>
  
  <p>-The JMeter server can access the target.</p>
  
  <p>-Same version of JMeter on all the systems (version 2.3.4 ).</p>
  
  <h2>I did the following:</h2>
  
  <p>1) Tried pinging form master to slave and vice versa through ubundu terminal. its happening ..</p>
  
  <p>2) Added the following to client (master) jmeter.properties:</p>
  
  <pre><code># Remote hosts and RMI configuration
  
   remote_hosts=192.168.0.139:1099
  
  # RMI port to be used by the server (must start rmiregistry with same port)
  
  server_port=1099
  </code></pre>
  
  <p>3) Added the following to server (Slave) jmeter.properties:</p>
  
  <pre><code># On the server(s)
   set server_port=1234
   start rmiregistry with port 1234
  </code></pre>
  
  <p>4) Now started the Jmeter engine on Master.</p>
  
  <p>a) Started Jmeter on master machine (GUI)</p>
  
  <p>b) Created test plan--> (added tread group , samplers and required listners)</p>
  
  <p>c)  Now start the Slave(s) from the GUI</p>
  
  <pre><code>  -click Run at the top
  
    -select Remote start
  
    -select the IP address
  </code></pre>
  
  <p>But error popup came as :-</p>
  
  <p><strong>"Connection refused to host : 192.168.0.139; nested exception is : java.net.ConnectionException : Connection Refused"</strong></p>
  
  <p>what may be the reason for not connecting with the remote salve (say here : 192.168.0.139)</p>
  
  <p>DO i need to do any more configuration in jmeter.properties file or in any other files (in both slave and master)?</p>