:::: MENU ::::

Send an UDP packet with NetCat

  • Sep 07 / 2016
  • 0
Linux

Send an UDP packet with NetCat

It can be needed to test an UDP connection with a server to ensure that connectivity is working and double check the data received.

Let’s take a simple example with a remote logstash server:
– Server mylogstash.mydomain.local
– Listening on port 5000

On emitter side, we are sending an UDP packet simulating a log line coming from an application:

On receiving server side, we are executing a tcpdump to check that packet is correctly coming with good content:

Here we are! It’s very simple to control UDP flows or simply check connection between 2 servers.

Comments are closed.

Question ? Contact