How do you find the local IP without getting the loopback?
By using gethostname & gethostbyname you can get a machine's IP address, but on some machines, it seems to give the loopback and on some, the actual IP (well, the loopback is a valid IP I suppose, but you know what I mean). Maybe this is attributed to the /etc/hosts file (in Linux)? In any case, is there a way to ensure you're getting back the actual machine IP as opposed to the loopback? Is there a way to test for multiple IPs on a machine?