Connect Printer to android device via wi - fi router

↘锁芯ラ 提交于 2019-12-12 13:21:51

问题


My printer and android device is connected to a Wi-Fi router. I need to print a text from my application which should be sent via the router to the printer.

How to establish the connection?

Note : i need not want to connect the printer directly.


回答1:


I just searched for lot of links but there is no luck, what i did is go to printer settings change the port to TCP/IP and assign RAW port. By default you will get 9100, use this port number in the code with respective IP address of the printer. You will get the fruit.

For code refer Code snippets



来源:https://stackoverflow.com/questions/20834050/connect-printer-to-android-device-via-wi-fi-router

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!