Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mac to IP Resolving

Status
Not open for further replies.

rosraj

Programmer
Feb 10, 2006
2
0
0
US
What we are actually looking to do is to have our program reach out onto the network and communicate with an electronic device we have manufactured. What we are looking for is to take a known Mac Address and find out the device's Dynamically Assigned IP Address. We would like to do this with minimal End User input.

We know that every DHCP network has a DHCP server, and every DHCP server has a lease table. Every DHCP Lease table has a correlation of Mac to IP. We want to be able to access the information in the DHCP Lease Table without shutting down services. The Microsoft DHCP management console can do this, and the W2K3 admin pack (installed on a client computer) allows this to happen from a remote computer, so we know it can be done.

We know that not all DHCP servers are Windows machines, some are Routers, some are Linux, etc.

Keep the items listed above in mind as you consider these questions:

Using Visual C (++ or .net)
1. How do we determine what/where the DHCP server is?
2. How do we access the information in the Lease table, regardless if it is on a Windows server, router, etc.? We could, perhaps, output the information to a .csv file in a temp folder for input/review for our program.

If the above cannot be done, can we send a broadcast to a specific port number requesting an IP address?

For example, our program communicates with our device on a specific port number. Could we then use the program to send a broadcast across the network on this port in a manner that our specific device will respond?

Another thought, is to send a broadcast to a specific Mac Address, and have it respond with its IP information.

We want to handle this in a manner that is simple enough on the End User that a child could do it. The End User has to have minimum requirements made of him.

Please let me know what you think.

Thanks,

Roshan
 
Not the answer to your question and I dont know if it will help at all, but 'angryipscanner' is an open source ip utility that you can view and download the code for. Maybe it will save you some development effort or give you some ideas?


HTH
 
Thank you very much for your input Mark. I appreciate it.

- Roshan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top