hi vikas, i've attached a c program that does what you want. it also gives you the hostname of your system. use it as you like... arvind. On Tue, 14 Nov 2000 22:50:18 +0530 Vikas Panchal wrote: >Hi! > >How to get the IP Address of my Machine (using c) and how can I come to know >it from shell. How to go online using LINUX. and when I send email using >VSNL SMTP Server (througn C program) it only recognize full email address of >VSNL only (like sharukh@xxxxxxxxxxxxxxxxxxxx) and not any Hotmail.com >address as recpient. > >Thanks >================================== >AILU Registered Linux user # 154544 >Vikas Panchal >Deptt. of Computer Science, MDU >Rohtak-124001 Haryana >INDIA > >--------------------------------------------- >The mailing list archives are available at >http://lists.linux-india.org/cgi-bin/wilma/LIP > > -------------------------------------------------------------------------- Global Internet phone calls, voicemail, fax, e-mail and instant messaging. Sign-up today for FREE account at http://www.hotvoice.com
Attachment:
ipaddr.c
Description: Binary data