I am looking for a way to retrieve the local machines IP address with out getting it out of the registry.

Is there an API that I can use

Any suggestions would be greatly appreciated
tcompe