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

Having trouble using it. #24

Open
arabdulazeez opened this issue Dec 7, 2023 · 3 comments
Open

Having trouble using it. #24

arabdulazeez opened this issue Dec 7, 2023 · 3 comments

Comments

@arabdulazeez
Copy link

I have a printer connect at this IP 192.168.68.102 in my network.

Is this how we need to run the command? Is the URI accurate?

    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/get-printers 'https://192.168.68.102/'`
Error: ClientError(Transport(Transport { kind: ConnectionFailed, message: Some("Connect error"), url: Some(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(192.168.68.102)), port: None, path: "/", query: None, fragment: None }), source: Some(Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }) }))```
@ancwrd1
Copy link
Owner

ancwrd1 commented Dec 7, 2023

This error means your printer does not listen on SSL port 443.
Try plain connection wit port 631 and /ipp path:
http://192.168.68.102:631/ipp

Sometimes it's /ipp/print, sometimes the root path, depends on the printer vendor. Usually can be configured or seen in the printer's web configuration UI.

@arabdulazeez
Copy link
Author

arabdulazeez commented Dec 7, 2023

I tried that and it didnt work

But to get all the printers in the network, shouldnt we be able to provide a range or something? or maybe the start address of the range?

This printer that I am using is Rongta ACE V1 printer.

    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/get-printers 'http://192.168.68.102:631/ipp'`
Error: ClientError(Transport(Transport { kind: ConnectionFailed, message: Some("Connect error"), url: Some(Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(192.168.68.102)), port: Some(631), path: "/ipp", query: None, fragment: None }), source: Some(Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }) })) ```


@ancwrd1
Copy link
Owner

ancwrd1 commented Dec 7, 2023

May be it does not support IPP protocol or it is disabled in the settings?

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

2 participants