Article View: es.comp.os.linux.programacion
Article #7440Re: ¿Cómo puedo obtener mis IPs en Linux?
From: Iván Sánchez Ortega
Date: Fri, 28 Feb 2003 19:45
Date: Fri, 28 Feb 2003 19:45
20 lines
2005 bytes
2005 bytes
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:
<20030228194530.40A.5.NOFFLE@BlackSpark.local>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!chi1.webusenet.com!news.webusenet.com!news-feed01.roc.ny.frontiernet.net!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!BlackSpark.local!not-for-mailReferences:
<b3o297$drp$1@nsnmrro2-gest.nuria.telefonica-data.net>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-02-28 11:45:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!chi1.webusenet.com!news.webusenet.com!news-feed01.roc.ny.frontiernet.net!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!BlackSpark.local!not-for-mail From: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: ¿Cómo puedo obtener mis IPs en Linux? Date: Fri, 28 Feb 2003 20:45:30 +0100 Organization: acm.asoc.fi.upm.es Lines: 20 Message-ID: <20030228194530.40A.5.NOFFLE@BlackSpark.local> References: <b3o297$drp$1@nsnmrro2-gest.nuria.telefonica-data.net> Reply-To: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es> NNTP-Posting-Host: 80.103.136.39 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: pinsa.escomposlinux.org 1046461526 11638 80.103.136.39 (28 Feb 2003 19:45:26 GMT) X-Complaints-To: newsmaster@pinsa.escomposlinux.org NNTP-Posting-Date: Fri, 28 Feb 2003 19:45:26 +0000 (UTC) User-Agent: KNode/0.7.2