You could always exec ifconfig, then parce the output for the interfaces, and pull the ips from there.
I do this on OSX with a simple terminal script like this:
ifconfig|grep broadcast|awk '{print $2}';
This could easily be made to work on linux/bsd/fpc with very little work.
Hope this helps.


On Mar 22, 2009, at 2:21 PM, Rainer Stratmann wrote:

For Windows there ist gethostbyname.

But for Linux I am searching for this function.

The unit inet is not on the distribution I have (knoppix)
And libc also does the compiler not know.

May be there exists another way to find out the local IP adress.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to