Scanning with the Brother HL-2280DW on Linux

When scanning on Linux using the Brother HL-2280DW, I’ve relied on reformedmusing’s invaluable guide many times. In the guide, you must know the IP of the Brother machine in order to setup the scanner. If you’re in a shared office setting like me where you don’t have access to the router, this can be difficult. Here’s a quick tip:

  1. Find the subnet you’re on by finding your internal IP:

    ip route get 8.8.8.8 | awk '{print $NF; exit}'

    Say you get 192.168.1.8. Probably a safe assumption the printer is on 192.168.1.*

  2. Use nmap to find all the hosts on your subnet. nmap will also spit out nodenames. Per Brother’s documentation:

The node name appears in the current BRAdmin Light window. The default node name of the print server in the printer is “BRNxxxxxxxxxxxx” or “BRWxxxxxxxxxxxx”. (“xxxxxxxxxxxx” is based on your printer’s MAC Address / Ethernet Address.)

      So run:

      nmap -sP 192.168.1.0-255 | grep "BR\(W\|N\)" | awk '{print $NF; exit}' | tr -d '()'

      That will return the IP that you can feed into the brsaneconfig4 command.

Happy scanning.

Written on September 11, 2015