Foro de elhacker.net

Programación => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: Sk9ITk5Z en 16 Marzo 2013, 01:07 am



Título: Programa para detectar dispositivos en una red
Publicado por: Sk9ITk5Z en 16 Marzo 2013, 01:07 am
Quiero hacerme un software para detectar dispositvos en una red pero no se por donde empezar  xd,  que librerias me suguieren utilizar para relizar ese tipo de software? lo hare en VB.NET


edito

ya hice uno pero esta muy lento tarda mucho en terminar de hacer los ping

Código
  1.  
  2. Imports System.Net
  3. Public Class Form1
  4.    Dim a As Integer
  5.    Dim b As Integer
  6.    Dim i As Integer
  7.    Dim t As Integer
  8.    Dim eco As New System.Net.NetworkInformation.Ping
  9.    Dim respuesta As System.Net.NetworkInformation.PingReply
  10.    Dim algo As System.Net.NetworkInformation.IPInterfaceProperties
  11.    Dim ip As IPAddress
  12.    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  13.        b = Val(TextBox2.Text)
  14.        a = Val(TextBox3.Text)
  15.        t = 0
  16.        For i = a To b
  17.            TextBox4.Text = i
  18.            ip = IPAddress.Parse("192.168.1." + TextBox4.Text)
  19.            respuesta = eco.Send(ip)
  20.  
  21.            If respuesta.Status = NetworkInformation.IPStatus.Success Then
  22.                TextBox1.Text = TextBox1.Text + "Respuesta desde: " & respuesta.Address.ToString + vbCrLf
  23.            Else
  24.                TextBox1.Text = TextBox1.Text + "Sin Respuesta" + vbCrLf
  25.            End If
  26.  
  27.        Next
  28.  
  29.  
  30.    End Sub
  31. End Class
  32.  
  33.