title: How can I connect to ZPL Printer using node-thermal-printer?
body: <p>I'm trying to use <strong>node-thermal-printer</strong> (<a href="https://github.com/Klemen1337/node-thermal-printer/" rel="nofollow noreferrer">https://github.com/Klemen1337/node-thermal-printer/</a>) to connect with <strong>ZPL Printer</strong> (<a href="https://chrome.google.com/webstore/detail/zpl-printer/phoidlklenidapnijkabnfdgmadlcmjo" rel="nofollow noreferrer">https://chrome.google.com/webstore/detail/zpl-printer/phoidlklenidapnijkabnfdgmadlcmjo</a>).  </p>
  
  <p>When I run the ZPL Printer, I can successfully access the printer via URL browser in the following address: (<a href="http://localhost:9100/" rel="nofollow noreferrer">http://localhost:9100/</a>)</p>
  
  <p>My Javascript code to connect with the printer using the <strong>node-thermal-printer</strong> is:</p>
  
  <pre><code>printer.init({
        type: "epson",                    
        interface: "/dev/usb/lp0",       // Linux interface
        ip: "localhost",                // Ethernet printing IP
        port: "9100"                   // Ethernet printing PORT
  });
  
  printer.isPrinterConnected( function(isConnected){ 
      console.log(isConnected);
  }); 
  </code></pre>
  
  <p>Running this, I have a false connected.</p>
  
  <p>In the IP address I also already tried: <code>http://127.0.0.1/</code> and port: <code>9100</code>, but it doesn't work.</p>
  
  <p>Please someone help-me.</p>
  
  <p>Sorry for my bad english.</p>