Hi,
How can I get local IP adress within a C program?

I tried this with gethostname function but it can not be helped since i dnt know the host name of the machine.

Thanks