Connect Printer to android device via wi - fi router

4.3k views Asked by At

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

There are 1 answers

1
Srinivasan Selvaraj On BEST ANSWER

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