Netcat allows you to listen or connect to TCP/UDP ports
General syntax:
$ netcat [options] host port
Create a listener on port 4444:
$ netcat -l 4444
Send traffic (from file specifically):
$ netcat 192.168.1.1 4444 < file.txt