Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > How read out own IP-address?

Reply
Thread Tools

How read out own IP-address?

 
 
R. Grasbon
Guest
Posts: n/a
 
      03-05-2009
Hi,

What is the best way to read out the obtained (DHCP) or
setted (manually) IP-address of eth0 (or eth1) from out
a C or C++ program in a Linux system?

Has someone a good hint or example?

Thanks,
Reimar
 
Reply With Quote
 
 
 
 
Gernot Frisch
Guest
Posts: n/a
 
      03-05-2009

> What is the best way to read out the obtained (DHCP) or
> setted (manually) IP-address of eth0 (or eth1) from out
> a C or C++ program in a Linux system?
>
> Has someone a good hint or example?


Wrong newsgroup. Google for gethostbyname, though.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How read out own IP-address? R. Grasbon C Programming 4 03-06-2009 12:19 AM
Allowing access to my own computers within my own network =?Utf-8?B?VHJldm9y?= Wireless Networking 2 07-20-2006 09:05 PM
I have built my own (simple) thread manager [TM], but just found java 5 has its own. Saverio M. Java 0 07-03-2006 08:52 AM
Using own classloader inside J2EE to load and unload own classes. Stefan Siegl Java 0 09-21-2004 08:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57