通过wi-fi路由器将打印机连接到android设备 [英] Connect Printer to android device via wi - fi router

查看:412
本文介绍了通过wi-fi路由器将打印机连接到android设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的打印机和android设备已连接到Wi-Fi路由器.我需要从应用程序中打印文本,该文本应通过路由器发送到打印机.

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.

如何建立连接?

注意:我不需要直接连接打印机.

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

推荐答案

我只是搜索了很多链接,但是没有运气,我所做的是进入打印机设置,将端口更改为TCP/IP并分配了RAW端口.默认情况下,您将获得9100,在代码中将此端口号与打印机的相应IP地址一起使用.你会得到水果的.

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.

有关代码,请参阅 代码段

这篇关于通过wi-fi路由器将打印机连接到android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆