CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2007
    Location
    .NET 3.5 Beta SP1, Visual Basic 2008 Express
    Posts
    225

    [RESOLVED] Find All Computers on a Network

    In Vista, when I go to start->network, I have a list of computers that are currently connected to the same access point I am. Even though we are on different workgroups, they still show up. On my campus, someone hosts a website that allows you to search through various computers with open shared files and then download those files. My goal is ultimately to be able to go out, find all computers with shared folders and then catalog these computers, the folders they're sharing and the files contained within. Beyond that I plan on it being a tool that would allow me to download the files from their computers with the click of a button. So basically, it's a helper application. My problem is that since we're on different workgroups, Net View doesn't return anything. I've found a few articles online about it, but none of them work. Is there anyway to get a list of all computers that are VISIBLE to me? Or anyway to get a list like the one used in start->network? For that matter, is there a way to just find computers with shared folders?

    Thanks in advance.
    Microsoft Visual Basic 2008 Express Edition
    .NET Framwork 3.5 Beta SP1

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Find All Computers on a Network

    This is going to be a quick post.. but i could go on for hours..

    The basic method to find Computers on a network is with either direct ping, or broadcasting..

    Direct ping : is a Long and tedious method, where by you send a "Are you there" message to every IP address on the network (or every possible IP) .. This can take hours to complete..

    Broadcasting : is sending a "Are you there" message to 255.255.255.255 (Resurved addy for broadcasting), and checking each reply to it..

    Once i have the reply ip's.. you can start enumerating shared folders and files...

    To start you off MS Technet has info here on how to access WINS and NetBIOS data..

    Gremmy...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Re: Find All Computers on a Network

    This is in C# but you may find something valuable in it or you could easily convert it.

  4. #4
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Re: Find All Computers on a Network

    You may also want to have a look at this, the source is downloadable.

  5. #5
    Join Date
    Jun 2007
    Location
    .NET 3.5 Beta SP1, Visual Basic 2008 Express
    Posts
    225

    Re: Find All Computers on a Network

    Awesome. Thanks you two.
    Microsoft Visual Basic 2008 Express Edition
    .NET Framwork 3.5 Beta SP1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured