UDP packet send / receive

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View

i am unable to send an UDP packet to embedded board on which IP was not
implemented. MAC Address and port number were implemented.

please  let me known how to send UDP packet to Embedded board through
MAC Address and port.

please help me

Re: UDP packet send / receive

Quoted text here. Click to load it

You are far from getting UDP datagrams through. You must implement something
on both ends to send and receive data through physical layer.


Re: UDP packet send / receive
UDP is an IP protocol.  No IP, No UDP.

Re: UDP packet send / receive
Ok, it is simply not possible. For the sake of simplicity, lets assume
both UDP nodes are on the same ethernet LAN, one node being your board
and the other a PC, since the sender will always require to know the IP
address of the receiver, the first step the sender takes is to resolve
the receiver IP address against an ethernet MAC on the same LAN using
the ARP protocol, after that it will direct the UDP/IP packet to your
board MAC.

Now if you don't care about IP and you would like to receive any UDP
(or TCP) data the sender has to send to your board you can create and
assign a "phantom" IP address to your board. For example on a windows
box do the following:

(1) Open a command prompt Window
(2) Create the phantom IP address by typing the following:


where XXXXXXX is your board Ethernet MAC address.

This command will add a static entry to your ARP cache.

Just make sure the IP address you enter is on the same subnet as your
board and the PC and that the IP address is not being used by another

Now any traffic that is directed to that IP from Windows will be
received by your board. Try something on IE for instance.

snipped-for-privacy@lycos.com wrote:
Quoted text here. Click to load it

Re: UDP packet send / receive
Quoted text here. Click to load it

Please understand that for transferring UDP packets
on Ethernet, your system has to implement at least
the necessary subparts of IP and ARP (and maybe ICMP).


Tauno Voipio
tauno voipio (at) iki fi

Site Timeline