**Function:** Obtains the Ethernet address of the primary network interface.
**Author**: [Jason Prell](http://homepage.mac.com/superrcat/)
**Output**: (Text)
**Notes**: This action will get the IPv4 address of the primary network interface on the system it is run from. It allows you to obtain the address quickly without having to parse additional information provided by the System Profiler action included within Mac OS X Tiger.
I’m looking for an action that will renew my DHCP lease in the Network preference panel. This one is the closest thing I’ve found.
Any clues?
Comment by Ruby — November 22, 2005 @ 8:58 am
The best idea is to insert a shell script, something like
sudo ipconfig set en1 DHCP
You may need to wrap it in an applescript to pass the sudo password
Comment by Steve — November 22, 2005 @ 9:58 am