# How to reach my LAN printer

**URL:** <https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675>\
**Category:** Ask for Help\
**Created:** [July 3, 2021, 5:45pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675 "2021-07-03T17:45:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 5:45pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/1 "2021-07-03T17:45:11Z")

</div>

In my LAN I’ve a thermal printer with an embedded web server.  
The printer accepts a data packet in XML format that can contain commands and data to be printed.  
I would like to know if any of you have experienced such a scenario with success.

Many thanks!! 🙂

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [July 3, 2021, 5:51pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/2 "2021-07-03T17:51:08Z")

</div>

Are you familiar with Apps Script?  
I’d imagine it would be fairly trivial to craft an XML payload and send it across using [UrlFetchApp.fetch](https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#fetch(String))

Probably the biggest challenge would be getting the packets to your printer. If it’s on your local LAN, then you’ll need to either give it a routable IP address, or setup some port-forwarding on your gateway router.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [July 3, 2021, 6:01pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/3 "2021-07-03T18:01:08Z")

</div>

Hola @Roldy

@Darren_Murphy is a master on AppScripts but if you are looking for something less techy check this [post](https://community.glideapps.com/t/new-glideapp-feature-new-restaurant-app-feature/18482) out and see if that’s what you’re looking for.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 6:01pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/4 "2021-07-03T18:01:13Z")

</div>

Yes I’m familiar with Apps Script  
I would like to stay in the Glide realm, but I don’t think it’s possible using webhooks either. Can you confirm?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [July 3, 2021, 6:03pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/5 "2021-07-03T18:03:08Z")

</div>

You could send a webhook to Integromat, and then use the Integromat HTTP module to send the XML payload, I guess.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 6:04pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/6 "2021-07-03T18:04:12Z")

</div>

Grazie @SantiagoPerez I have read but that scenario does not seem applicable due to the necessary delay in printing that would occur. I need a real-time printout after clicking on the button.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 6:05pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/7 "2021-07-03T18:05:09Z")

</div>

How many seconds do you think it takes before printing takes place in this case?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [July 3, 2021, 6:10pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/8 "2021-07-03T18:10:16Z")

</div>

I’d say it would be surprisingly fast. I’ve done tests where I’ll have an action that:

- Sends a webhook to an Integromat scenario that updates a row in a GSheet, and
- Does a Set Columns on the same sheet

Consistently, the update from Integromat always arrives in the spreadsheet before the same update from Glide.

So the Integromat option is probably a better option than the Apps Script option, if speed is the primary concern.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 6:23pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/9 "2021-07-03T18:23:50Z")

</div>

Thanks @Darren_Murphy I will try in that direction

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 3, 2021, 6:34pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/10 "2021-07-03T18:34:26Z")

</div>

Seeing the integromat purchase plans, I notice that a one minute wait (standard plan) will be necessary between one print and the next. It might be eligible in my scenario, but it’s not the best. 🤔

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [July 3, 2021, 10:48pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/11 "2021-07-03T22:48:24Z")

</div>

I think that’s only if you’re polling, but you’d be using a webhook.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [July 4, 2021, 2:42am UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/12 "2021-07-04T02:42:04Z")

</div>

Well, that’s interesting. I was just about to disagree with you, but then I checked at [Pricing | Integromat](https://www.integromat.com/en/pricing), where I found:

 ![Screen Shot 2021-07-04 at 10.30.22 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/f/4f0b1cdb0de762260c241e301ed915d98864f9e8.png)

The reason I was about to disagree with you is that we have a scenario in @Mark_Turrell’s Covessa project that’s driven by an incoming webhook from Glide, and a few days ago we found that operations were consistently being queued. When I investigated, I found that the queuing always seemed to happen when we had two or more webhooks arriving in the same one minute cycle. So I arrived at the conclusion that we were being bitten by the one minute minimal interval. And certainly, since we’ve dialled down the frequency of the webhook, the queuing has stopped…

![Screen Shot 2021-07-04 at 10.32.38 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/0/20e6c49c3a64a98c3a4f0a9412353f0bc3486253.png)

June 29 was when the queuing was happening the most, and we had 1881 operations on that day (more than the number of minutes in a day - 1440).

So now I’m not so sure, and I’m almost inclined to contact Integromat support and seek clarification. 🤔

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [July 4, 2021, 7:42am UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/13 "2021-07-04T07:42:14Z")

</div>

I think that you should @Darren_Alderman because we do not experience that and we are using LOTS of webhooks. Let me know.

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [July 4, 2021, 8:55am UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/14 "2021-07-04T08:55:47Z")

</div>

I do think , however, that webhooks arriving at a specific scenario will be serialised, so that might account for your experience assuming the webhook takes some time to complete. Don’t quote me on this but I’m pretty certain it’s correct.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [July 4, 2021, 9:29am UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/15 "2021-07-04T09:29:01Z")

</div>

Yeah, I think you’re right. Although this particular scenario typically takes 1-2 seconds to complete…

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [July 4, 2021, 4:25pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/16 "2021-07-04T16:25:19Z")

</div>

Hola @Roldy

If you want to know how fast a command is received by a device from an APP using a Webhook I can tell you that is fast!  
I can say that around 3-5 sec your device should be receiving the data.

Your case seems similar to my IoT demo APP although I don’t use a web printer or Integromat, in my case I used an IoT device and IFTTT service.  
In this thread you can see the video and check how fast the data and feedback are sent/received:

> [@A real notification using Glide and IoT](https://community.glideapps.com/t/a-real-notification-using-glide-and-iot/24163):
>
> Hi people! Here I bring another tool to make Glide APPs more useful and smarter. Many of us have asked and looked for a solution to have a notification when a form, order or event is sent/received from our APP and some workarounds can be used depending on use case. In my case, I wanted to have a real notification beyond a phone or PC and turn on/off a display, monitor, alarm siren, etc when an event on my APP is fired and I think I have the solution using IoT technology and Webhooks. Here is …

My APP doesn’t control a printer or send a document to be printed but it is able to control a monitor/TV which is turned on when a new order is received and is turned off when all orders were approved from APP.

With regard to Integromat’s minimal interval set to 1 min, this would apply if you set a timer trigger to your scenario to make an HTTP call periodically (a polling operation) but I think it’s not your case due to your printer doesn’t call or read data from your APP, your APP is who sends data to printer asynchronously.

Just for curiosity: what brand/model is your printer? I like this kind of problems!! 😉

Feliz día!

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 4, 2021, 5:15pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/17 "2021-07-04T17:15:27Z")

</div>

I thank you all for giving me your point of view and sharing your direct experience. Now I can better orient myself to find a solution to the problem.  
@Darren_Murphy thank you for your disagreement / agreement 🙂 I hope you and @Mark_Turrell are able to fine-tune the Covessa project, as it seems to me worth every effort. Please let me know how your research went with integromat support.  
😲 @gvalero I am fascinated by your work with IoT devices!  
The printer is a fiscal meter and the APP is a Point of Sale that I developed for a small chain of shops.  
This is the printer model: [https://www.custom.biz/en\_GB/product/hardware/printers/pos-printers/kube-ii](https://www.custom.biz/en_GB/product/hardware/printers/pos-printers/kube-ii)  
Therefore the use is in the context of retail shops, for this reason it is important that the receipt is issued in real time (or almost).

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [July 4, 2021, 6:06pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/18 "2021-07-04T18:06:21Z")

</div>

Thanks @Roldy and great idea what you have.

I think I have seen this fiscal printer in my country but I couldn’t see its right info due to your link forbids seeing the page outside your region (Europe/Italy) 🙃

Is it the Kube II? I try to find out the section about TCP/IP and XML support.

Saludos

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 4, 2021, 6:13pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/19 "2021-07-04T18:13:08Z")

</div>

Yes it is! The exactr model name is: Kube II-F Eth.  
I’ve a guide for the embedded web services but is in italian. Let me know if you want and I’ll send you!

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [July 4, 2021, 6:18pm UTC](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675/20 "2021-07-04T18:18:02Z")

</div>

Yes please!

Let me learn about this device

[Next page](https://community.glideapps.com/t/how-to-reach-my-lan-printer/28675.md?page=2)
