The first computer-to-computer link was established on ARPANET.

The Advanced Research Projects Agency Network (ARPANET) established many of the connection protocols we still use today and is considered to be the precursor to the internet.

Source