tags:

views:

23

answers:

2

hi how can i send a dhcp request/discovery packet using c# to locate dhcp server any idea or snippet

+1  A: 

See the P/Invoke.net - dhcpsapi in windows. There are also docs about the DHCP APIs on windows here.

Preet Sangha
This looks like it only works with client side info or windows DHCP servers.
Matthew Whited
dhcp api dose not work if i am not part of active directory
Ehtsham
basically i want to discover the dhcp server on lan in c#
Ehtsham