Forum > Networking and Web Programming

Code for scanning systems attached to network

(1/2) > >>

I am looking for some code which can scan a network range for address, and obtain the MAC addresses of those that respond.

I am looking for code which works like

Is there some code snippet or component for this?

You can use lNet's UDP broadcast for basic "find computers on the network". I use this in Lentilwars to find server on the LAN.

Do you have some sample code for this?

Looking in Lentilwars should be interesting.

Well lNet doesn't provide IP-scanner functionality per-se. What I mean is cooperative server discovery over LAN where the server waits for udp packets on a set port and the looking clients broadcast them on the same port. When the server gets them it replies to the clients directly and they get the IP this way.


Can it be used to scan the network like an ip scanner tool, in some kind of threaded manner?

I am writing software that needs to identify devices via their MAC addresses as the DHCP assigned addresses may change.


[0] Message Index

[#] Next page

Go to full version