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)

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.

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!

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

9 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
    Permalink

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

    D:\Tools>lanscan

    LANscanner v2.0 – ScottiesTech.Info

    Scanning LAN…

    — 192.168.2.111 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 `’

    D:\Tools>

    Reply
    • 27 December 2018 at 23:06
      Permalink

      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…

      Reply
      • 28 December 2018 at 00:00
        Permalink

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

        Reply
        • 28 December 2018 at 17:25
          Permalink

          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.

          Reply
  • 29 December 2018 at 20:27
    Permalink

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

    Reply
  • 31 December 2018 at 16:08
    Permalink

    Hi Scottie,

    I get following results:

    c:\Windows>lanscan

    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?

    Reply
    • 31 December 2018 at 17:07
      Permalink

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

      Reply

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.