How to find packet sent address

352420 pts.
Tags:
Linux
Packets
UDP
I need to create an automated response so that when I receive a UDP packet for a sender, that sender receives the address it was sent from. I tried using the recvform, but that only brings up the address of the sender, not the the address from which the packet was sent.

Answer Wiki

Thanks. We'll let you know when a new response is added.

When data is formatted into packets, the bandwidth of the communication medium can be better shared among users than if the network were circuit switched two kinds of data: control information and user data  known as payload The control information provides data the network needs to deliver the user data, for example: source and destination network addresses error detection codes, and sequencing information

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Genderhayes
    The router keeps track of where a request is going and who sent it. When the external source responds, the router simply checks to see which device attempted to contact the external source initially, and forwards the response to that device
    7,940 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following