

ErikT
Members-
Content Count
32 -
Joined
-
Last visited
Everything posted by ErikT
-
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
@Angus Robertson Thanks Angus. This might be a good solution as well. -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
@Kas Ob. Okay, I see that the "hacker" term has mellowed over time. Apparently, I'm a bit old. -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
@DelphiUdIT Yeah, I'm using ARP to get the MAC address. I hadn't thought about using it to find the actual devices directly. That should be easy to implement. I've got it running using ICS Ping. Isn't as fast as I'd hoped, but does work. I will have a go with the ARP method, as I already have part of the code running. -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
Hello @Kas Ob. Thank you for your comments. 1) Yes, I do use WireShark, although in this particular case it hasn't helped me a whole lot. No packet stand out, making me believe that the problem with Indy Ping is internal in its code, and not on the network. 2) Thanks, I may have a look at that. However, I find it a bit disconcerting, that the word hack/hackers show up seven times on the first page alone... -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
@JonRobertson Thank you for the tip! Will have a look at it tomorrow. -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
Hello @JonRobertson Yes, that is exactly what I am doing. I have implemented the ping method, which nearly works. The devices I am searching for do respond to a ping, so that is no issue. They are not computers, by the way. At the moment I'm struggling with the Indy Ping procedure, that apparently has a problem. After running a seemingly random number of times (e.g. 20), it raises an exception: Socket Error #10040 Message too long. This seems to be a known issue with Indy Ping, and I am searching for a functioning work-around for it. After raising the exception, I can't get Ping going again without restarting the application. Will continue the search for a fix tomorrow. -
Network scan in Delphi (Windows), get MAC addresses
ErikT replied to ErikT's topic in Network, Cloud and Web
Update: I found another example, which I actually got working. So now I can give a function an IP address, and get a MAC address in return. So now my task is boiled down to figuring out if each address exixts on the LAN, or not. When I get both things working, I'll post the code here for others to use.