V
venutaurus539
Hi All,
Can some one please let me know how to find the ip address of
a machine within a C program. I've tried gethostbyname() but it uses /
etc/hosts file which is not I want. I don't even want to extract the
IP address from ifconfig because it is time consuming. So, can any one
let me know how can I do this without effecting portability across
linux flavors (No Windows please).
Awaiting your reply,
Thank you,
Venu Madhav.
Can some one please let me know how to find the ip address of
a machine within a C program. I've tried gethostbyname() but it uses /
etc/hosts file which is not I want. I don't even want to extract the
IP address from ifconfig because it is time consuming. So, can any one
let me know how can I do this without effecting portability across
linux flavors (No Windows please).
Awaiting your reply,
Thank you,
Venu Madhav.