host is 0, client is 1