title: Connecting slave to a jenkins master
body: <p>I tried to connect slave to jenkins master through java web start but my efforts failed in the end.</p>
  
  <p>I executed java -jar (jar file) (url) to connect and got the following errors.</p>
  
  <pre><code>java.net.ConnectException: Connection timed out
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at java.net.Socket.connect(Socket.java:528)
      at java.net.Socket.&lt;init&gt;(Socket.java:425)
      at java.net.Socket.&lt;init&gt;(Socket.java:208)
      at hudson.remoting.Engine.connect(Engine.java:321)
      at hudson.remoting.Engine.run(Engine.java:210)
  </code></pre>
  
  <p>Please help. Both Master and Slave use Ubuntu Linux.</p>