>PS: do not forget to send your answers to Python Tutor also ... BTW, >could it be possible de configure the list so that the "reply-to" field >is set to the Python Tutor list instead of the sender ?
I believe our list administrator has decided that reply-to munging can be considered harmful. http://www.unicom.com/pw/reply-to-harmful.html Johan Geldenhuys a écrit : > Is there a other way of doing this? Getting the MAC. I am on a ethernet > network. > > Johan > > > > > > ------------------------------------------------------------------------ > > Sujet: > Re: [Tutor] Source PC MAC address > Expéditeur: > Pierre Barbier de Reuille <[EMAIL PROTECTED]> > Date: > Wed, 24 Aug 2005 17:00:46 +0200 > Destinataire: > Python Tutor <tutor@python.org> > > Destinataire: > Python Tutor <tutor@python.org> > > Return-Path: > <[EMAIL PROTECTED]> > Received: > from earth.accesstel.co.za ([unix socket]) by earth (Cyrus v2.1.9) with > LMTP; Wed, 24 Aug 2005 16:59:09 +0200 > X-Sieve: > CMU Sieve 2.2 > Received: > by earth.accesstel.co.za (Postfix, from userid 65534) id F00D011DD9; > Wed, 24 Aug 2005 16:59:08 +0200 (SAST) > Received: > from localhost.localdomain (localhost [127.0.0.1]) by > earth.accesstel.co.za (Postfix) with ESMTP id 11EF911DD9 for > <[EMAIL PROTECTED]>; Wed, 24 Aug 2005 16:59:08 +0200 (SAST) > Received: > from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by > gateway.azitech.co.za (8.11.6/8.11.6) with ESMTP id j7OEnmr23311 for > <[EMAIL PROTECTED]>; Wed, 24 Aug 2005 16:49:49 +0200 > Received: > from bag.python.org (bag.python.org [194.109.207.14]) by > smtp-vbr1.xs4all.nl (8.13.3/8.13.3) with ESMTP id j7OEvApb033830; Wed, > 24 Aug 2005 16:57:10 +0200 (CEST) (envelope-from [EMAIL PROTECTED]) > Received: > from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with > ESMTP id DA7B61E400F; Wed, 24 Aug 2005 16:57:15 +0200 (CEST) > X-Original-To: > tutor@python.org > Received: > from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with > ESMTP id 5382C1E4003 for <tutor@python.org>; Wed, 24 Aug 2005 16:57:13 > +0200 (CEST) > Received: > from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; > 24 Aug 2005 16:57:13 +0200 > Received: > from auvergne.cirad.fr (auvergne.cirad.fr [195.221.173.145]) by > bag.python.org (Postfix) with ESMTP for <tutor@python.org>; Wed, 24 Aug > 2005 16:57:13 +0200 (CEST) > Received: > from auvergne.cirad.fr (auvergne.cirad.fr [195.221.173.145]) by > auvergne.cirad.fr (8.13.2/8.13.2) with ESMTP id j7OEsnoG028104 for > <tutor@python.org>; Wed, 24 Aug 2005 16:54:49 +0200 > Received: > from [195.221.175.162] ([EMAIL PROTECTED] [195.221.175.162]) by > auvergne.cirad.fr (8.13.2/8.13.2) with ESMTP id j7OEsmMS028090 for > <tutor@python.org>; Wed, 24 Aug 2005 16:54:48 +0200 > ID du Message: > <[EMAIL PROTECTED]> > Agent utilisateur: > Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050817 > Thunderbird/1.0.2 Mnenhy/0.7 > X-Accept-Language: > fr, en > Version de MIME: > 1.0 > Références: > <[EMAIL PROTECTED]> > In-Reply-To: > <[EMAIL PROTECTED]> > X-Enigmail-Version: > 0.91.0.0 > X-BeenThere: > tutor@python.org > X-Mailman-Version: > 2.1.6 > Precedence: > list > List-Id: > Discussion for learning programming with Python <tutor.python.org> > List-Unsubscribe: > <http://mail.python.org/mailman/listinfo/tutor>, > <mailto:[EMAIL PROTECTED]> > List-Archive: > <http://mail.python.org/pipermail/tutor> > List-Post: > <mailto:tutor@python.org> > List-Help: > <mailto:[EMAIL PROTECTED]> > List-Subscribe: > <http://mail.python.org/mailman/listinfo/tutor>, > <mailto:[EMAIL PROTECTED]> > Content-Type: > text/plain; charset="iso-8859-15" > Expéditeur: > [EMAIL PROTECTED] > Errors-To: > [EMAIL PROTECTED] > X-Virus-Scanned: > by XS4ALL Virus Scanner > X-Accesstel-MailScanner-Information: > Please contact Accesstel for information > X-Accesstel-MailScanner: > Found to be clean > X-MIME-Autoconverted: > from quoted-printable to 8bit by gateway.azitech.co.za id j7OEnmr23311 > X-Fetched: > by SuSE Linux Openexchange Server from > [EMAIL PROTECTED] for [EMAIL PROTECTED] via pop > X-Spam-Status: > No, hits=-7.6 required=4.8 > tests=AWL,BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, > REPLY_WITH_QUOTES,SIGNATURE_LONG_SPARSE, USER_AGENT_MOZILLA_UA > autolearn=ham version=2.55 > X-Spam-Checker-Version: > SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) > Content-Transfer-Encoding: > 8bit > > > Socket is built up on IP, not on Ethernet: you have no way of finding a > MAC address using sockets simply because it may not exist one ! (if > you're not on an Ethernet network) You need to access lower levels of > network and probably access directly the network packet as your network > card is sending it to your OS ! > > Pierre > > Johan Geldenhuys a écrit : > >>Hi List, >>I am doing some networking programming and would like to limit access to >>my socket server on the the source devices' MAC address. >>I know the IP from where the connection is coming, but how could I find >>out what the MAC of the source device is? >>Any quick answers / ideas? >>Is there a build-in function in socket that can do this? >> >>Thanks, >> >>Johan >> >> >> >> >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>Tutor maillist - Tutor@python.org >>http://mail.python.org/mailman/listinfo/tutor > > -- Pierre Barbier de Reuille INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP Botanique et Bio-informatique de l'Architecture des Plantes TA40/PSII, Boulevard de la Lironde 34398 MONTPELLIER CEDEX 5, France tel : (33) 4 67 61 65 77 fax : (33) 4 67 61 56 68 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor A new monthly electronic newsletter covering all aspects of MED's work is now available. Subscribers can choose to receive news from any or all of seven categories, free of charge: Growth and Innovation, Strategic Directions, Energy and Resources, Business News, ICT, Consumer Issues and Tourism. See http://news.business.govt.nz for more details. http://www.govt.nz - connecting you to New Zealand central & local government services Any opinions expressed in this message are not necessarily those of the Ministry of Economic Development. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivery to the intended recipient, be advised that you have received this message in error and that any use is strictly prohibited. Please contact the sender and delete the message and any attachment from your computer. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor