Print to a network printer
For a Windows PC or tablet at the venue and a receipt printer on the network cable. A small program on the PC, the print agent, takes the kitchen, bar and receipt slips from your Mesero and sends them to the printer.
Once it runs, every phone and tablet that takes orders prints through it: Android, iPhone, iPad or another PC. They only need Mesero open; the slips go through your Mesero to the agent.
Android tablet with the printer on its USB port? You don't need this page: in Mesero, open Help → “Set up the printer on the tablet”.
What you need
- A Windows 10 or 11 PC or tablet that stays on at the venue, on the same router as the printer.
- An 80 mm thermal printer that speaks ESC/POS (sold as Epson TM-T20 or TM-T88 compatible) with a network (RJ45) port.
- A network cable from the printer to the router, and 15 minutes.
Step by step
- 1Plug the printer into the router with the network cable and switch it on.
- 2Find its IP address: switch the printer off, hold the FEED button, switch it on and let go after a second. It prints a test page; write down the IP address on it (for example 192.168.1.200).
- 3In the router's settings, reserve that IP address for the printer (often called “DHCP reservation” or “static lease”), so it never changes.
- 4On the PC, install Node.js LTS: download the Windows installer (.msi) and click Next through the defaults.Download Node.js LTS
- 5Download the Mesero print agent, right-click the zip → “Extract All…” and extract it to C:\Mesero. You get the folder C:\Mesero\mesero-print-agent.Download the print agent (zip)
- 6Open printers.json with Notepad and put the printer's IP address on all three lines (bar, kitchen, receipt), then save. With one printer, each slip says COCINA, BAR or the receipt at the top.
printers.json { "bar": { "host": "192.168.1.200", "port": 9100 }, "kitchen": { "host": "192.168.1.200", "port": 9100 }, "receipt": { "host": "192.168.1.200", "port": 9100 } } - 7Test it: in the folder, click the address bar, type powershell and press Enter, then type the line below. A MESERO test slip comes out.
PowerShell node agent.mjs --test receipt - 8In Mesero (manager or owner): Manage → “Employees & settings” → Print agent → “Create new token”. Copy it right away: it is shown only once.
- 9Right-click start-agent.bat → “Edit” (or open it with Notepad). Put your Mesero address and the token on the two set lines, then save.
start-agent.bat set POS_URL=https://YOUR-BUSINESS.meseropos.com set PRINT_AGENT_TOKEN=PASTE-THE-TOKEN-HERE - 10Double-click start-agent.bat. A black window opens and says “print agent polling…”: leave it open (you can minimise it).
- 11Make it start with Windows: press Windows+R, type shell:startup, Enter, and put a shortcut to start-agent.bat in that folder. In Settings → System → Power, set sleep to Never.
- 12In Mesero, the owner turns on “Print kitchen and bar tickets” and “Print receipts” in Manage → “Employees & settings”, and saves.
What goes where
| File | Line | What to put |
|---|---|---|
| printers.json | "host" | The printer's IP address from the test page, on all three lines. Keep 9100. |
| start-agent.bat | POS_URL | Your Mesero address, as in your browser, e.g. https://mybar.meseropos.com |
| start-agent.bat | PRINT_AGENT_TOKEN | The token from Manage → “Employees & settings” → Print agent. |
If nothing prints
- The test slip doesn't come out: check the IP in printers.json against the printer's test page, and that the PC and printer are on the same router.
- The black window says “Set POS_URL and PRINT_AGENT_TOKEN”: the two lines in start-agent.bat still hold the examples. Creating a new token replaces the old one, so paste the newest.
- “node” is not recognized: Node.js is not installed yet, or the window was opened before installing it. Install it, then open a new window.
- The internet drops or the printer is off: nothing is lost. Slips wait in Mesero and print when it is back.
- A cash drawer plugs into the printer's RJ11 port and opens when a cash payment is taken.
- Two printers (bar and kitchen)? Give each its own IP and put each address on its own line in printers.json.