Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Find and display a DHCP server's IP address' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find and display a DHCP server's IP address
Authored by: tkw4u on Jan 31, '06 08:32:01AM

We had a need for this functionality when we started registering MAC addresses for the network.

I came up with this applescript so users can just double-click on it to get their DHCP server address. Obviously if you need to get a different interfaces DHCP server change "en0" to the interface needed.

Make sure to save it as an application:

do shell script "ipconfig getoption en0 server_identifier"
set theIP to the result
display dialog "Your DHCP server IP is: " & theIP




[ Reply to This | # ]