0

I have this code where I get all the IP's connected to the network..

Dim oWMI = GetObject("winmgmts:")
        Dim IP = GetObject("winmgmts:")
        Dim oPings = GetObject("winmgmts:")
        Dim PcName = GetObject("winmgmts:")


        For i = 100 To 105
            IP = "192.168.168." + i.ToString
            oPings = oWMI.ExecQuery("Select * from WIN32_Pingstatus where address='" + IP + "'" + " and ResponseTime > 0")

            For Each oPing In oPings
                PcName = System.Net.Dns.GetHostEntry(IP)
                'TextBox1.Text &= IP & Chr(9) & PcName.HostName & vbNewLine
                txtUserIPs.Text &= IP & Chr(9) & vbNewLine
                lblNetworkUsers.Text = lblNetworkUsers.Text + 1
            Next

        Next

But my LAN game is sending to those IP's that are connected to the network. but not yet opened my game. what I want is how do I code that the tcplistener or tcpclient will tell the host that they are active.....so that If they are active...their IP's are the only one's who will receive.

Thx in advance for helping me..I hope someone will

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by kingsonprisonic
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.