Article View: es.comp.os.linux.programacion
Article #7445Re: �C�mo puedo obtener mis IPs en Linux?
From: [ZoRo]
Date: Sat, 01 Mar 2003 13:11
Date: Sat, 01 Mar 2003 13:11
25 lines
1862 bytes
1862 bytes
ip addr ls
"Iv�n S�nchez Ortega" <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es>
escribi� en el mensaje news:20030228194530.40A.5.NOFFLE@BlackSpark.local...
> Guido Reina wrote:
>
> > Hola,
> >
> > �c�mo puedo obtener mis direcciones IP desde un programa en C bajo
Linux?
>
> prueba con algo as� como system("ifconfig");
>
> (antes, ejecuta ifconfig desde consola, y l�ete el manual de ifconfig con
> "man ifconfig")
>
> ----------------------------------
> Iv�n S�nchez Ortega -ivansanchez-arroba-escomposlinux-punto-org
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS/IT d+ s:+ a-->- C+++ UL+++>++++$ P-->--- L+++ E---- W+++$ N++ !o !K
> w--(---) !O M>+ V-()
> PS+ PE(-) Y PGP t+ 5+ X+ R+(+++) tv--(-) DI+>++$ D++ G e h! r++ y?
> ------END GEEK CODE BLOCK------
Technical Details
Message-ID:
<b3qbhn$1og1ui$1@ID-59646.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!217-127-108-221.uc.nombres.ttd.ES!not-for-mailReferences:
<b3o297$drp$1@nsnmrro2-gest.nuria.telefonica-data.net> <20030228194530.40A.5.NOFFLE@BlackSpark.local>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,ebd42d1b7f196397 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-03-01 05:17:24 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!217-127-108-221.uc.nombres.ttd.ES!not-for-mail From: "[ZoRo]" <granbilbao_NOSPAM_@latinmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: �C�mo puedo obtener mis IPs en Linux? Date: Sat, 1 Mar 2003 14:11:18 +0100 Lines: 27 Message-ID: <b3qbhn$1og1ui$1@ID-59646.news.dfncis.de> References: <b3o297$drp$1@nsnmrro2-gest.nuria.telefonica-data.net> <20030228194530.40A.5.NOFFLE@BlackSpark.local> NNTP-Posting-Host: 217-127-108-221.uc.nombres.ttd.es (217.127.108.221) X-Trace: fu-berlin.de 1046524279 59246546 217.127.108.221 (16 [59646]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106