Article View: es.comp.os.linux.programacion
Article #13045Re: Obtener IP
From: Ignacio Arenaza
Date: Sat, 07 Apr 2001 23:01
Date: Sat, 07 Apr 2001 23:01
26 lines
1861 bytes
1861 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "javi" == javi <ALEXXX@teleline.es> writes:
javi> caso es que me gustaria saber si existe una funci�n,
javi> estructura o alguna manera de capturar la direcci�n ip del
javi> pc q esta ejecutando la aplicaci�n a traves de telnet, algo
Si tienes un socket por el que aceptas la conexion, puedes usar la
funcion getpeername que te da precisamente eso. Si es a traves de un
telnet manual, la cosa es mas complicada...
Saludos. I�aki.
- --
Get PGP/GPG Keys at http://www.escomposlinux.org/iarenaza/pgpkey.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG
iD8DBQE6z5xRZXLnGT1HLgcRArt1AKCUC6MItoYjbuNQPdI45wqvUKCZXgCfVr7w
yKUGMmMzP/rsWuTrZ7FNHT4=
=O2nR
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<87itkgxqjx.fsf@eb2ebu.ampr.org>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!kinglear.mobilixnet.dk!opentransit.net!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!frodo.audiolis.com!127.0.0.1!news.antakira.com!news.audiolis.com!127.0.0.1!newsfeeder.wanadoo.es!44.133.1.30!nobodyReferences:
<3ACECB16.716D98AF@teleline.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,725d8cc2f4cf52e7 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-04-09 03:59:21 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!kinglear.mobilixnet.dk!opentransit.net!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!frodo.audiolis.com!127.0.0.1!news.antakira.com!news.audiolis.com!127.0.0.1!newsfeeder.wanadoo.es!44.133.1.30!nobody From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: Obtener IP Date: 08 Apr 2001 01:01:38 +0200 Organization: Servidor NNTP de eb2ebu.ampr.org Lines: 26 Message-ID: <87itkgxqjx.fsf@eb2ebu.ampr.org> References: <3ACECB16.716D98AF@teleline.es> NNTP-Posting-Host: 213.97.227.24 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@wanadoo.es NNTP-Posting-Date: Sun, 8 Apr 2001 21:31:21 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7