Provide default value for some attrs in client.
Prevent bind to 0.0.0.0 in client.
Fix connection reset in client.
Fix the error when restarting service.

Make listening sockets reusable to prevent "Address already in use"
error when binding socket after one is just closed.