I'm using the js sdk (page 13) and local desktop middleware (page 8) from https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/zebra-browser-print-user-guide-v1-3-2-en-us.pdf, I've noticed when I call zebraObject.send(zpl) it makes a http call to localhost on port 9100 at path /write. Can I send zpl commands to printers outside localnetwork through this sdk and middleware? how?
How to send a ZPL to a zebra printer outside local network? |
1 Replies
No, https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/zebra-browser-print-user-guide-v1-3-2-en-us.pdf / That's Not My Neighbor only works on the local network and does not support sending ZPL commands directly to the outside world. To print remotely, you can:
Use an intermediary server: Create a server that receives remote ZPL commands and forwards them to the printer via TCP (port 9100).
Use a VPN: Connect the client and printer to the same virtual network to print as if on the local network.
Open a port on the router (not recommended for security reasons): Forward the printer's port 9100 to the internet and send commands directly.
The best solution is to use an intermediary server to ensure better security and control.