Two different networks can be connected by using -
Two different networks can be connected by using gateway.
A gateway is a piece of networking hardware used in telecommunications via communications networks that allows data to flow from one discrete network to another.