UDP client. By default Netcat uses the TCP protocol for its communications, but it can also UDP using the -u option. As we mentioned at the previous step, Netcat lets you convert your PC in a server.In this case we're going to establish the connection between the server and the client but using UDP.
To create a TCP server and listen for inbound connections, a Bind command has to be sent to the TCP manager. This will instruct the TCP manager to listen for TCP connections on a particular InetSocketAddress; the port may be specified as 0 in order to bind to a random port. The actor sending the Bind message will receive a Bound message signalling that the server is ready to accept incoming.