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.