This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IP ADDRESS OF MACHINE


snodx@hotmail.com writes:

> So I wish to obtain my standalone computer's IP Address through a
> C/C++ program. What function should I use for this?

The assumption that a machine has got a single IP address is wrong,
generally speaking.  Quite a few hosts with IP stacks do not even know
the IP address with which they are visible on the Internet.

You should examine your application and determine what "IP address"
really means in this context.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]