09-21-2010, 03:44 PM
How can I get the IP - MAC - HOSTNAME of computers conected in router (192.168.0.xxx) with QM?
IPMac scanner
|
09-21-2010, 03:44 PM
How can I get the IP - MAC - HOSTNAME of computers conected in router (192.168.0.xxx) with QM?
09-21-2010, 03:50 PM
Can you get it with ipconfig? If not, I don't know.
RunConsole2 "ipconfig /all"
09-21-2010, 03:53 PM
In DOS there are commands like
NET VIEW ARP -A NBTSTAT -A IP Do you know any way in windows?
09-21-2010, 04:16 PM
RunConsole2 "net VIEW"
RunConsole2 "arp -A"
09-21-2010, 04:24 PM
I was looking for something like a function or dll...
09-21-2010, 04:37 PM
Look in codeproject, codeguru, etc. But I think it will not be easy.
09-21-2010, 06:13 PM
I'm thinking in Ping to 192.168.0.0 - 192.168.0.255 and convert ip to mac using Iphlpapi.dll/SendARP...
Can you help with Iphlpapi.dll/SendARP?
09-21-2010, 06:20 PM
dll iphlpapi #SendARP DestIP SrcIP !*pMacAddr *PhyAddrLen
09-21-2010, 06:24 PM
Can you include an example?
09-21-2010, 06:40 PM
Macro Macro1447
str computerName="comp"
09-21-2010, 06:51 PM
Thanks.
09-21-2010, 06:58 PM
Enumerates network computers, like NET VIEW.
Macro Macro1448 def MAX_PREFERRED_LENGTH 0xFFFFFFFF
09-21-2010, 07:03 PM
Do you know any way to get hostname using ip?
09-21-2010, 07:24 PM
09-21-2010, 07:33 PM
Thanks again.
note: int ia=inet_addr(IP) --> int ia=inet_addr(_s)
09-21-2010, 07:41 PM
no, _s here not used.
IP must be string containing IP address. |
« Next Oldest | Next Newest »
|