connect to hostname instead of localhost and use ip addresses for members