Correct way to determine machine LAN ip
Correct way to determine machine LAN ip
- Subject: Correct way to determine machine LAN ip
- From: Arthur VIGAN <email@hidden>
- Date: Sat, 29 Mar 2003 19:07:25 +0100
I am designing a very simple application on Mac OS X, and I would like
to determine the machine LAN ip...
I first tried to use NSHost, but once it has been used, it alsways
sends the same address, even if I disconnect or change the ip. Even if
I send a [NSHost setHostCacheEnabled:NO] message, nothing changes.
Is there another way to determine the ip address (not necessarily using
Objective-C and Cocoa)?
Thanks a lot in advance.
-- Arthur
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.