Pass state to binding so we know hostname to connect to