change client to bind() instead of connect()