The IPConfig application reports the IP address, netmask, broadcast address and MAC address of the IP network interface of an iPhone or iPod touch device at startup.

http://appshopper.com/utilities/ipconfig