Netcat (nc) is a tool that you can use to read and write to network connections using TCP or UDP. It is a very powerful network debugging and investigation tool, because it can make almost any kind of connection its user needs and has a lot of built-in tools for that.