netcat

Read and write data across network connections using TCP or UDP

brewmacoslinux
Try with needOr install directly
Source

About

Utility for managing network connections

Commands

ncnetcat

Examples

Listen on a port and accept incoming connections$ nc -l 8080
Connect to a remote host and port$ nc example.com 80
Transfer a file from one machine to another$ nc -l 5000 > received_file.txt && nc sender_host 5000 < file_to_send.txt