none
Detect connection speed of local area network connection RRS feed

  • Question

  • Hi all.

    Does anybody know how I can get the speed of the Local Area Connection on my PC with VB.Net 2005?

    Thanks

    Keyth
    Tuesday, June 10, 2008 1:34 PM

Answers

  • Speed is here:

     

            For Each networkCard As NetworkInterface In NetworkInterface.GetAllNetworkInterfaces  
                'networkCard.Id  
                'networkCard.Name  
                'networkCard.Description  
                'networkCard.OperationalStatus  
                'networkCard.Speed  
                'networkCard.GetPhysicalAddress  
                'others  
             Next 

    dewayne the pain
    • Marked as answer by Keyth Tuesday, June 10, 2008 3:25 PM
    Tuesday, June 10, 2008 3:01 PM

All replies

  • Hi Keyth,

    Download a file from the network and do the math size/time.

    Ralf
    • Marked as answer by Keyth Tuesday, June 10, 2008 2:17 PM
    • Unmarked as answer by Keyth Tuesday, June 10, 2008 3:24 PM
    Tuesday, June 10, 2008 2:07 PM
  • Will give it a try thanks Ralph

    I wasnt sure if you could access the information through one of the classes provided.

    Keyth
    Tuesday, June 10, 2008 2:10 PM
  • Hi Keyth,

    Network speed is not a given, maybe the Max speed of the connection between you and the router/switch could be found somewhere.. But I'm not sure on that one.

    Ralf
    Tuesday, June 10, 2008 2:14 PM
  • OK, thanks Ralph, I'll toy with your idea :)

    Keyth
    Tuesday, June 10, 2008 2:17 PM
  • Speed is here:

     

            For Each networkCard As NetworkInterface In NetworkInterface.GetAllNetworkInterfaces  
                'networkCard.Id  
                'networkCard.Name  
                'networkCard.Description  
                'networkCard.OperationalStatus  
                'networkCard.Speed  
                'networkCard.GetPhysicalAddress  
                'others  
             Next 

    dewayne the pain
    • Marked as answer by Keyth Tuesday, June 10, 2008 3:25 PM
    Tuesday, June 10, 2008 3:01 PM
  • aha my friend thats the beauty !!

    Thanks very much :)

    Keyth
    Tuesday, June 10, 2008 3:25 PM