In article , ProgDario wrote: :I have to retrieve the ARP table from a DHCP SERVER.
;How can I query the DHCP server to obtain such table?
As I explained to you before, chances are that you cannot do so -- not unless your DHCP server is constrained to be a more specific kind of device (such as a Cisco router) that happens to offer a query mechanism.
:Do I have to prepare a formatted packet or something similar? Do I have :to use socket?
I posted the exact SNMP MIB you need for Cisco routers and the algorithm you have to go through to extract the data you want. You didn't reply at all.
The interaction so far has been fairly one-sided, and that discourages people from assisting you further. We're [generally] willing to guide you as long as you show that you are reasonably learning as you go -- but we aren't likely to post the exact code you need -- you are the developer, the one being paid to develop the code. [And besides, I'd have to learn Java in order to write the necessary code.]