A node that is connected to two or more networks is commonly known as a gateway. It is also known as a router. It is used to forward messages from one network to another. Both the gateway and router regulate the traffic in the network.
Differences between gateway and router:
A router sends the data between two similar networks while gateway sends the data between two dissimilar networks.