https://github.com/koushikphy/web-printer
Make printers without Ethernet or Wifi connection available on LAN.
https://github.com/koushikphy/web-printer
flask lan lpr printer-controller printer-management printer-server printers
Last synced: 10 months ago
JSON representation
Make printers without Ethernet or Wifi connection available on LAN.
- Host: GitHub
- URL: https://github.com/koushikphy/web-printer
- Owner: Koushikphy
- Created: 2023-02-13T17:48:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-08T07:15:23.000Z (almost 3 years ago)
- Last Synced: 2025-03-03T09:23:18.523Z (about 1 year ago)
- Topics: flask, lan, lpr, printer-controller, printer-management, printer-server, printers
- Language: HTML
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Web Printer
#### Make printers without Ethernet or Wifi connection available on LAN.
If a printer does not have any Ethernet or Wifi connection it's not possible to print directly from other machine in the local network. This flask app creates a webeserver that can accepts and prints documents. The webserver is accessible from any machine on the LAN, thus document can be printed on the isolated printer directly from any machine on the LAN.
### 🛠️ Setting up:
1. Clone this repo in a computer where the printer is locally connected via USB.
2. Check the full name of the printer with `lpstat -p -d` and modify `web_printer.py` file with the name.
3. Install flask and run the server with `python web_printer.py` or using gunicorn with `gunicorn -w 4 'web_printer:app' -b '0.0.0.0:8080'`
4. Go to the IP address of the host machine with port `8080` (or whatever you provided), the webserver should be available there. For example, if the machine IP is `192.168.31.111`, then the webserver is accessible at `http://192.168.31.111:8080/`. You can submit print jobs using this web-page.