It shouldn't
Check your code against the docs or the wiki
http://lwip.wikia.com/wiki/Raw/UDP

My code is something like:

        mypcb = udp_new() != NULL
        DEST_IP(&ipaddr);

// for SPECIFIC other end IP address
        udp_connect(mypcb, &ipaddr, DEST_PORT) == ERR_OK
// otherwise, to connect to anyone
        udp_bind(mypcb, IP_ADDR_ANY, LOCAL_PORT) == ERR_OK

        udp_recv(mypcb, myrecv, NULL);

Perhaps you are not using IP_ADDR_ANY ?

To send:
// for SPECIFIC other end IP address, set in udp_connect()
        udp_send(pcb, p);
// otherwise, you have to know the other end somehow (e.g.: from the callback parameters)
        udp_sendto(pcb, p, &addr, port);


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to