A method for connecting a first host and a second host within at least one communication network (N1, N2) through a relay module, characterized in that the method comprises, at the relay module,: - capturing (S1, S2) a first connection establishment request sent by the first host to establish a main connection with the second host; - sending, to the second host, a second connection establishment request to establish an initial auxiliary connection between the relay module and the second host; - receiving, from the second host, a first acknowledgment response; - in case the first connection establishment request and the first acknowledgment response present a same multipath property, activating a forward mode to handle traffic carried by the established direct main connection and: ▪ dropping (S7b) the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment; ▪ releasing (S7c) the first connection establishment request to the second host; ▪ forwarding (S7d), to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, for the establishment of said direct main connection; - in case the multipath property of the first connection establishment request and the multipath property of the first acknowledgment response are different, activating a relay mode to handle the traffic carried by: ▪ an additional auxiliary connection established between the first host and the relay module; and ▪ the initial auxiliary connection established between the relay module and the second host. - capturing (S1, S2) a first connection establishment request sent by the first host to establish a main connection with the second host; - sending, to the second host, a second connection establishment request to establish an initial auxiliary connection between the relay module and the second host; - receiving, from the second host, a first acknowledgment response; - in case the first connection establishment request and the first acknowledgment response present a same multipath property, activating a forward mode to handle traffic carried by the established direct main connection and: ▪ dropping (S7b) the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment; ▪ releasing (S7c) the first connection establishment request to the second host; ▪ forwarding (S7d), to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, for the establishment of said direct main connection; ▪ dropping (S7b) the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment; ▪ releasing (S7c) the first connection establishment request to the second host; ▪ forwarding (S7d), to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, for the establishment of said direct main connection; - in case the multipath property of the first connection establishment request and the multipath property of the first acknowledgment response are different, activating a relay mode to handle the traffic carried by: ▪ an additional auxiliary connection established between the first host and the relay module; and ▪ the initial auxiliary connection established between the relay module and the second host. ▪ an additional auxiliary connection established between the first host and the relay module; and ▪ the initial auxiliary connection established between the relay module and the second host.