Socat
Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them. Because of its versatility and ease of use, it is often used to create network connections between systems.
Usage
In the target machine
socat TCP-LISTEN:<PORT>,reuseaddr,fork EXEC:<BINARY> & 
Where:
- TCP-LISTENis the type of connection to create.
- <PORT>is the port number to expose.
- reuseaddrallows the port to be reused.
- forkallows the connection to be forked.
- EXEC:<BINARY>is the binary to execute.
- &runs the command in the background.
In your machine
nc <IP> <PORT>