more automatic IP discovery for client and server

server now listens on all network interfaces (0.0.0.0) and client finds
the server IP by examining its own