Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:32:58+00:00 2026-06-02T19:32:58+00:00

I am broadcasting UDP packets between 2 machines and listening to them on a

  • 0

I am broadcasting UDP packets between 2 machines and listening to them on a third machine. I can see the packets in Wireshark and need any easy way to obtain the “Data” portion of the UDP packets. I have been able to dump the packet infromation to a file using tshark

C:>tshark -V -R "udp" > C:/test.txt

However, this prints out everything in the packet, and i only want to print out the “Data” portion. Is there a way to do this?

Also, if there is a way to capture this in Python, that would be great as well. I have set up the following code:

Host = "myip"
Port = 5000
While True:
    sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
    sock.bind((Host,Port))
    data = sock.recv(4096)
    sock.close()

When i implement this code, using my “listening” pc, no data is received.
When i implement this code, using one of my two communicating pcs, “The requested address is not valid in its context”

Mind you, I see all the data being passed between the 2 pcs in Wireshark on my “listening” pc.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:32:59+00:00Added an answer on June 2, 2026 at 7:32 pm

    McFly,

    If you want to do sniffing and display/parse packets in Python, Scapy is the way to go here. Just drop tshark as Scapy can automatically do 99% of what tshark can do out of the box.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a thread that is Broadcasting UDP packets. I have another thread that
Im using UDP video stream broadcasting, but the output is so bad. I understand
how can broadcasting the push notifications be done to all devices using my application.
Using C#, does broadcasting over UDP repeatedly send its packet, or just once? I've
I have an list of IP which I am getting using UDP broadcasting, so
I have a project of video broadcasting in which I need to provide the
I have an issue with broadcasting Datagram packets from one Android phone to the
I would like to know whether there is any easy method to check whether
Anyone have idea how can find available IP addresses in a network using any
If I am streaming (I mean, simply broadcasting raw data over UDP sockets) a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.