How to bind client to server?