[fpc-pascal] lNet getting the local IP

Luca Olivetti luca at ventoso.org
Thu Oct 7 16:57:07 CEST 2010


En/na Marco van de Voort ha escrit:
> In our previous episode, Brian Winfrey said:
>  
>> I found an example for linux on stack overflow that was in c
>> http://stackoverflow.com/questions/212528/linux-c-get-the-ip-address-of-local-computer
> 
> Compiles on FreeBSD and the result looks sane (but on a system that has a
> routable address)


I didn't try it, but I see that it tries to connect to google's dns 
server, so it'd fail miserably if the computer has no internet access.

Bye
-- 
Luca



More information about the fpc-pascal mailing list