group connection by host