27 December 2018
LANscanner v2.0

Way back in early 2009, I wrote a post entitled: How to Determine the Master Browser in a Windows Workgroup

Since then, quite a number of people have downloaded and used my little LANscanner program for displaying the IP addies, MAC addies, workgroup, and Master Browser of all the gizmos on their local network.

One problem: With the release of Windows 10 1709, it stopped working.

Well, I’m happy to announce the release of LANscanner v2.0!

Yeah, that took awhile. I’ve been busy!

What’s New

Version 2.0 of LANscanner works a bit differently.

Since the net view command no longer works in Windows 10, I had to change how the whole shebang works. Now, it goes something like this:

  • arp -a command gets a list of all IP addies and MAC addresses of gizmos on the LAN
  • nbtstat -n / ipconfig are used to get your puter’s IP addy and MAC address
  • nbtstat -A [IP_ADDY] is called on each result to get the workgroup name and Master Browser status

Note that because LANscanner 2.0 works differently than v1.68, you may want to stick with v1.68 if you’re still using an older version of Windows.

The options are the same as before:

  • -ip  =  Sort output by IP addy instead of puter name
  • -w WORKGROUP  =  Scan only the workgroup called WORKGROUP
  • -e WORKGROUP  =  Scan all workgroups except WORKGROUP
  • -n = Suppress the “Press any key to exit…” message at the end
  • -m = Only displays the MASTER browsers found
  • -nodeip [IPv4 addy] = Specify the IP of the network adapter you want to scan from in the case of multiple network adapters (including VirtualBox Host Only Network adapter)
  • -g = Include the Default Gateway
  • -s = silence the printing of selected command-line options

Also, note that the arp command will also see things like networked printers, NAS devices, and even your home router – although the router will probably not show up since it’s usually the default gateway, and the default gateway is ignored by LANscanner v2.0 (use -g option to include it).

Finally, not all networked gizmos like printers and NASes have a workgroup set, so those fields might be blank in the results. Some printers will also show their name as “–” if they are in sleep mode.

As usual, LANscanner v2.0 speaks English, Spanish, French, German, Swedish, Polish, Norwegian, Portuguese, Japanese, Dutch, and Czech.

Give it a whirl!

UPDATE 31 Jan 2019: v2.01 is out. Added -g option to include the Default Gateway, and the -s option to silence the printing of selected options


Get Scottie Stuff!

Get 10% off EVERYTHING from Wednesday Sept 11th through Friday the 13th with code: S3PT3MB3R !!

At long last, LANscanner works on Windows 10!
Tagged on:                 

12 thoughts on “At long last, LANscanner works on Windows 10!

  • Pingback: How to Determine the Master Browser in a Windows Workgroup | Scottie's Tech.Info

  • 27 December 2018 at 22:36

    i ran lanscan and got this result. if i double click the exe to run it the window does not stay open.


    LANscanner v2.0 – ScottiesTech.Info

    Scanning LAN…

    — C:/Users/Dennis/AppData/Local/Temp/ocrD08C.tmp/test/lanscan.rb:248:in `block in ‘: undefined method `+’ for nil:NilClass (NoMethodError)
    from C:/Users/Dennis/AppData/Local/Temp/ocrD08C.tmp/test/lanscan.rb:238:in `each’
    from C:/Users/Dennis/AppData/Local/Temp/ocrD08C.tmp/test/lanscan.rb:238:in `’


    • 27 December 2018 at 23:06

      Oops! Download v2.0 again. It will stop bombing.

      Although I’m not sure what the problem is. I think it’s not finding a MAC address for some gizmo on the network…

      • 28 December 2018 at 00:00

        That works. I get computer names, NAS names, and printer names, other devices just a double dash (–)

        • 28 December 2018 at 17:25

          Re-download v2.0 again! I realized last night that there was a problem on puters with multiple network adapters. Now it’s much smarter. If you only have 1 network adapter, you probably won’t see any difference.

  • 29 December 2018 at 20:27

    Been using your Lanscan app for a long time. This version detects EVERYTHING on my network………. Takes awhile to complete, but working great. thanks.

  • 31 December 2018 at 16:08

    Hi Scottie,

    I get following results:


    LANscanner v2.0 – ScottiesTech.Info

    Scanning LAN…

    C:/Users/Mik/AppData/Local/Temp/ocr1E9B.tmp/test/lanscan.rb:174:in `match’: incompatible encoding regexp match (UTF-8 regexp with CP850 string) (Encoding::CompatibilityError)
    from C:/Users/Mik/AppData/Local/Temp/ocr1E9B.tmp/test/lanscan.rb:174:in `match’
    from C:/Users/Mik/AppData/Local/Temp/ocr1E9B.tmp/test/lanscan.rb:174:in `block in ‘
    from C:/Users/Mik/AppData/Local/Temp/ocr1E9B.tmp/test/lanscan.rb:173:in `each_line’
    from C:/Users/Mik/AppData/Local/Temp/ocr1E9B.tmp/test/lanscan.rb:173:in `’

    Any idea?

    • 31 December 2018 at 17:07

      Redownload v2.0. I added a bunch of encoding fix stuff. Hopefully, that’ll do the trick…

  • 31 January 2019 at 11:50

    Hey, great update for Windows 10. Would it be possible to add a flag to include gateway/router aswell?

    • 31 January 2019 at 18:02

      Good idea! See the new version: LANscan v2.01.
      It’s the new -g option.
      Also added -s option to silence the printing of chosen options.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.