In order to create a connection to your lwip device, the client must
be able to translate the host-name to an IP address.  Traditionally,
this has meant teaching the local DNS server that the name "lwip"
translates to IP address X.X.X.X.  The DHCP host-name option provided
by the lwip device can factor into this if the DHCP server and the DNS
server coordinate appropriately.  (However, in the traditional model,
the lwip device is *not* directly involved in the actual
name-to-IP-address translation.)

It is possible to do this without a dedicated DNS server or DHCP
server, but the client host and your device would need to implement
"zero configuration networking" (see
http://en.wikipedia.org/wiki/Zero_configuration_networking as a
starting point).

Jeff

On Thu, Mar 4, 2010 at 8:05 AM, Sägesser Walter
<walter.saeges...@solon.com> wrote:
> I have tried to give my device a name, i.e. I set 'LWIP_NETIF_HOSTNAME'  to
> 1 and left the default setting ("lwip") in the initialisation code. At
> startup DHCP is assigning an IP and I can PING the device with this address
> (and also the web server works by it). But I can't ping with the host name
> 'lwip'. What else must be done to convince the device that it should listen
> to its name, too?
> (The final goal is to access the web server by name in order to configure a
> IP manually if there is no DHCP server around).
>
> Many thanks
> Walter
>
> _____________________________
>
> SOLON Inverters AG
> Burgerfeldstrasse 19
> CH-8730 Uznach SG, Schweiz
>
> Phone: +41 55 246 41 14
> Direct:  +41 55 246 58 52
> Fax:     +41 55 246 41 16
> www.solon.com
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>


_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to