What is the role of a gateway in networking?
A gateway connects two different networks, enabling communication between them, often involving translation of data or protocols.