The present invention relates to a membrane electrochemical generator formed by a multiplicity of reaction cells mutually connected in electrical series and assembled according to a bipolar configuration. A connection system uses a bidirectional technique to establish a connection via the relay server between two endpoints that can be used bidirectionally to send a stream from a first endpoint to a second endpoint and a stream from the second endpoint to the first endpoint. The protocol is independent of specific application specific requirements.