Validate server address input. Optimize client read loop.