Re: UDP packet send / receive
- From: "rTrenado" <ReneT@xxxxxxxxxxxxxx>
- Date: 30 Dec 2005 00:45:57 -0800
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:
ARP -s 192.168.1.90 00-XX-XX-XX-XX-XX
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
host.
Now any traffic that is directed to that IP from Windows will be
received by your board. Try something on IE for instance.
ghelbig@xxxxxxxxx wrote:
> UDP is an IP protocol. No IP, No UDP.
.
- References:
- UDP packet send / receive
- From: balajiyalam
- Re: UDP packet send / receive
- From: ghelbig
- UDP packet send / receive
- Prev by Date: Re: Low power LCD driver
- Next by Date: LPC21xx newbie questions
- Previous by thread: Re: UDP packet send / receive
- Next by thread: Re: UDP packet send / receive
- Index(es):
Relevant Pages
|