This can be done with the following Linux commands.
nc stands for netcat.
Netcat is a simple Unix utility that reads and writes data over network connections using the TCP or UDP protocol. It is designed to be a reliable “internal” tool that can be used directly or easily manipulated by other programs and scripts. At the same time, it is a multi-functional network debugging and exploration tool because it can create almost any type of connection you need and has some interesting built-in features.
Netcat has three main modes of operation. These are connect mode, listen mode and tunnel mode.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.