Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
2.00/5 (4 votes)
See more:
how to get the ipaddress of the system.. using
c
Posted

Here is the sample code solving this problem: http://stackoverflow.com/questions/212528/linux-c-get-the-ip-address-of-local-computer[^].

Have you been banned by Google? :-)

—SA
 
Share this answer
 
Comments
CPallini 7-Jul-11 3:18am    
5.
And it's time to ban him from CodeProject too.
Sergey Alexandrovich Kryukov 7-Jul-11 4:56am    
Thank you.
Be careful: you scared OP. :-) I thought that I scared him by mentioning the ban and apologized.
--SA
@BangIndia 7-Jul-11 3:32am    
Excuse me sir.. may i know why. you going to ban me
Tarun.K.S 7-Jul-11 4:07am    
He is just kidding don't worry! Just try to google your queries, you will definitely get a lot of help. And when you get stuck somewhere in your code, bring it here and we shall try our best to solve it. :)
@BangIndia 7-Jul-11 5:21am    
ok.. sir .. thanks.. .....
using the gethostname function you can get the ip address...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900