Definition: A gateway is a device intended to connect telecommunication networks with different architectures or different protocols, or offering different services.
the gateway allows you to connect a device to order by infrared to order it by wifi and vice versa the other communication protocols