This is our old Q&A Site. Please post any new questions and answers at

Is there a way to view a packet stream in real time? What I mean by this can kind of be simulated by holding ctrl+end during a capture and watching the Packet Bytes view. Not all packets need to be displayed, just the latest one.

This is useful in certain situations such as monitoring a live udp stream while manipulating an application.


asked 12 May '11, 09:10

Hugh%20Jeffner's gravatar image

Hugh Jeffner
accept rate: 0%

You can turn on Auto Scroll in Live Capture, but you still need to hit CTRL+end to view the packet bytes of the last packet.

(12 May '11, 10:21) joke

Stealing Geralds idea and enhancing it with some awk magic might do the trick for you:

tcpdump -nlX -i en1 | awk '$1~"..:..:.." {system("clear")} {print}'

This will capture traffic and shows it straight away (without name-resolving nor buffering). Then the awk will clear the screen on every first line of tcpdump output of each packet.

permanent link

answered 13 May '11, 10:49

SYN-bit's gravatar image

SYN-bit ♦♦
accept rate: 20%

It doesn't have the performance I was hoping for but it does work. -Thanks

(13 May '11, 17:04) Hugh Jeffner

You can sort of do this in the GUI as Joke describes, but it might make more sense to do this on the command line using tshark -x or tcpdump -X.

permanent link

answered 12 May '11, 11:12

Gerald%20Combs's gravatar image

Gerald Combs ♦♦
accept rate: 24%

This looks promising, but it scrolls by way too fast. Is there an easy way to pipe the output to display only the most recent packet? I basically need to write each packet output to the same area of the screen.

(12 May '11, 12:56) Hugh Jeffner
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 12 May '11, 09:10

question was seen: 10,348 times

last updated: 13 May '11, 17:04

p​o​w​e​r​e​d by O​S​Q​A