Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android USB ports changing #2

Open
stan4000 opened this issue Dec 5, 2024 · 5 comments
Open

Android USB ports changing #2

stan4000 opened this issue Dec 5, 2024 · 5 comments

Comments

@stan4000
Copy link

stan4000 commented Dec 5, 2024

Hi,

I am hitting an issue where after plug/unplug USB cable or after reboot the USB path is changed:

For example permiting access to /dev/bus/usb/001/002 and after reboot the communication is not working anymore.
Deleting the added USB device, re-applying it and it pops up with /dev/bus/usb/001/007.

When I am using the app in sever mode this makes it impossible to auto connect to the same printer .
Could it be possible to have some range of ports or to summarize them so the USB signal can try all of them until some respond?

@deakjahn
Copy link
Owner

deakjahn commented Dec 5, 2024

This usually happens if you give a temporary permission to the app rather than a permanent one (also called default in some phones).

@nitincodery
Copy link

I am unable to start server, is there any video or guide to setup server mode correctly, I am also facing the same issue, I need to share it via IPP/CUPS mode, I couldn't set it up, the printer is not available on localhost and there's no option to mention IP address manually?

@nitincodery
Copy link

I also requested refund, but it got rejected, I wanted to try server mode, but it isn't working and refund also got rejected :/

@deakjahn
Copy link
Owner

deakjahn commented Jan 5, 2025

@nitincodery I sent an e-mail about the refund.

We have a full, illustrated guide at https://netprinter.app/help.html, also available from the Settings page, but this is generally about the app, server mode is just one section in it.

You may misunderstand it, though: in server mode your phone becomes the print server. As such, you can't decide your IP manually or otherwise, it will be the same IP that your phone normally receives from your network. What you can specify is the port. There's really nothing else to set up, you specify the protocol you want the server to accept (IPP in this case, probably), the port (because IPP normally uses 631 and Android doesn't allow ports below 1024 for user apps, I'd suggest 1631 for simplicity but it could be any free port above 1024, actually).

When you have server mode running, the IPP server will be available at your phone's IP address, at port 1631 (or whatever you chose), it should be that simple.

@nitincodery
Copy link

Ok I'll try again, and the app is really amazing I have no complaints about it, sorry it went that way. I'll give it another go, and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants