refs #4 A hacky implementation of ipv4 address detection

Don't attempt to use the old routine because it is broken, needs update
for windows 7/8 and also for newer versions of Linux that no longer use
ifconfig.  Also, ifconfig doesn't produce consistent output everywhere.