LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   finding username/password for wireless printing (https://www.linuxquestions.org/questions/general-10/finding-username-password-for-wireless-printing-4175582185/)

newbiesforever 06-13-2016 04:51 PM

finding username/password for wireless printing
 
1 Attachment(s)
I've always wanted to set up wireless printing for my Brother HL-2170W, but I've never quite figured it out. I'm close. So I found and entered the IP address. The remaining issue is the password for authentication [screenshot attached].

It's probably only because I tend to miss the obvious, but I'm not sure which username and password the system is asking for; where I need to look for it (if only in my head--it's probably a password I know). I just found the HP support site (http://support.hp.com/us-en/document/c03112291); it seems to clearly indicate that this would be my network password. If that's the case, fine--I know my network password. What I'm not sure about is actually the username. What's that supposed to be? I just tried the name of the network for the username, and unless I made a typo repeatedly (I hate it when you can't make your typed password show), it didn't work--access denied. So...where do I find the username?

michaelk 06-13-2016 05:04 PM

What distribution/version?

How is the printer connected to the network?

I configure my printer using either a static IP address via router's DHCP reservation and use a URL like via cups web setup like:

socket://192.168.0.10:9100 (direct connection)

smallpond 06-13-2016 05:04 PM

Since you are printing using smb it expects a Windows domain username and password to authorize access to the printer.

https://en.wikipedia.org/wiki/Windows_domain

ferrari 06-13-2016 05:13 PM

Actually, I doubt hat the samba protocol is the right one to connect to a network printer.

If you have nmap installed, you can check what ports a given device is listening on. In the case of a printer, that information will then tell you the likely printing network protocols supported. So, for your printer at 192.168.1.17 you could do
Code:

nmap 192.168.1.17
If you need help to understand the output, post it here for others to advise further.

Typically, Brother printers support the LPD and AppSocket network protcols, so you could try using the following
Code:

socket://192.168.1.17
or
Code:

lpd://192.168.1.17/BINARY_P1
FWIW, I have a Brother network printer defined by it's hostname (instead of IP address) with the following URI
Code:

lpd://HL2150N/BINARY_P1

newbiesforever 06-13-2016 05:17 PM

Quote:

Originally Posted by michaelk (Post 5560386)
What distribution/version?

How is the printer connected to the network?

I configure my printer using either a static IP address via router's DHCP reservation and use a URL like via cups web setup like:

socket://192.168.0.10:9100 (direct connection)

It's MX Antix 14. The printer is connected to a wireless network. (Sorry, did you want something more specific?)

Quote:

Originally Posted by smallpond (Post 5560387)
Since you are printing using smb it expects a Windows domain username and password to authorize access to the printer.

https://en.wikipedia.org/wiki/Windows_domain

Thank you! Notwithstanding Ferrari's advice (I'll try the other protocol), that's what I needed.

ferrari 06-13-2016 05:21 PM

Quote:

Thank you! Notwithstanding Ferrari's advice (I'll try the other protocol), that's what I needed.
The socket protocol advice should be all you need. I just gave you a more in-depth information to allow you to detect supported protocols.

michaelk 06-13-2016 05:25 PM

Is the printer's wireless settings already configured etc?

newbiesforever 06-13-2016 06:07 PM

Quote:

Originally Posted by michaelk (Post 5560402)
Is the printer's wireless settings already configured etc?

Should be. I haven't done anything to the printer's manual settings recently, but I followed HP's instructions last time i tried to set up wireless printing. If I understood correctly, the instructions said to reset the printer's own IP address to 0.0.0.0, and I did. (Had to push and/or hold down the ready button for a certain period of time to blank the address.)

michaelk 06-13-2016 06:12 PM

Got a page not found error but not sure how it would be relative to a Brother printer?

newbiesforever 06-13-2016 06:16 PM

[forehead slap] Well, that's my fault--I failed to notice that that wasn't Brother-specific information, notwithstanding that the information on passwords should be the same in principle.

Last time I tried to set up wireless printing, I think I used this: http://www.brother-usa.com/faqs/static/ale_17463.pdf

michaelk 06-13-2016 07:21 PM

I do not know what the HP page had for password information but typically the username and password would either be a valid samba username/password on a linux box or the username/password as setup for a printer shared on a windows PC.

newbiesforever 06-13-2016 09:06 PM

Nmap says:
Code:

Nmap scan report for 192.168.1.17
Host is up (0.0000090s latency).
Not shown: 997 closed ports
PORT    STATE SERVICE
111/tcp open  rpcbind
139/tcp open  netbios-ssn
445/tcp open  microsoft-ds

Is that what I should have expected?

michaelk 06-13-2016 09:11 PM

My HL-2170W
PORT STATE SERVICE
21/tcp open ftp
23/tcp open telnet
80/tcp open http
515/tcp open printer
631/tcp open ipp
9100/tcp open jetdirect

I need to go check the web configuration...
netbios is enabled not sure why 139 and 445 did not show up in the output.

rpcbind? Is 192.168.1.17 the address of the printer?

ferrari 06-13-2016 09:40 PM

The IP address shown in the attached image (opening post) was 192.168.1.17, but like Michael is questioning, is that really the printer IP address? I would have expected similar to the output he has shown.

port 515 --> LPD protocol
port 631 --> CUPS/IPP protocol
port 9100 --> AppSocket/JetDirect protocol

ferrari 06-13-2016 09:51 PM

BTW, you've mentioned the HP support pages a couple of times, but in your opening post you mentioned that the device in question is a HL-2170W ie Brother laser printer.


All times are GMT -5. The time now is 12:10 AM.