changed the way the ip address for log server is found/set

- corrected what i believe whas a bug that ip address (listening) could not be set.
- added a new option called interface so one can specify the name of the interface (not tested on Windows but only on Mac), if the interface is specified the code will search for it and get it's IPv4 address and set that to be used by the client.
- changed so if the listening ip address is set the same address is sent to the client