[fpc-pascal] Get Local IP using glib (eth0,eth1)

TOUZEAU DAVID david.touzeau at fr.kaspersky.com
Thu Oct 5 17:36:10 CEST 2006


  Hi

I'm trying to write a function to read the local IP eth0/eth1... using 
glibc library...
I found only examples that found the 127.0.0.1 IP but not the real IP :

http://community.freepascal.org:10000/bboards/message?message_id=233776&forum_id=24083
http://lists.freepascal.org/lists/fpc-pascal/2002-March/002932.html

Is someone could help me to find the solution...
Currently i use regex on ifconfig that is a hack!

best regards

-- 


 




More information about the fpc-pascal mailing list