|
From: | Ben Bobbitt |
Subject: | Re: [lwip-users] ICMP port unreachable when using netconn UDP |
Date: | Mon, 18 Feb 2008 08:22:37 -0600 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
All I have done is to make the UDP related changes to the lwipopts.h file, and then in the module that was previously a webserver example: pxHTTPListener = netconn_new( NETCONN_UDP );addr.addr = htonl(0xc0a80002); // my local ip 192.168.0.2 netconn_bind(pxHTTPListener, &addr, webHttpPort ); addr.addr = htonl(0xc0a80065); // ip of the remote system netconn_connect(pxHTTPListener,&addr,webHttpPort);You shouldn't need to do a connect if you receive. But if you do it should precisely match the remote end's IP/port. I doubt that your remote system 192.168.0.65 is sending _from_ webHttpPort, and is probably using a random high port number.So just don't do the connect. Jifl
[Prev in Thread] | Current Thread | [Next in Thread] |