title: socket_connect(): unable to connect [111]: Connection refused - Printing with PHP
body: <p>We are using PHP to print labels to a Datamax printer.</p>
  
  <p>Occasionally these fail to print and any subsequent attempts to connect give the error:</p>
  
  <pre><code>socket_connect(): unable to connect [111]: Connection refused - Printing with PHP
  </code></pre>
  
  <p>Rebooting the printer resolves the problem.</p>
  
  <p>Any ideas how I can troubleshoot this?</p>
  
  <p>Mick</p>