<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
je me répond à moi-même ayant trouvé quelque chose.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
import socket</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<div>            hostname = socket.gethostname()</div>
<div>            IPAddr = socket.gethostbyname(hostname)</div>
<div>            print("Hostname:" + hostname)</div>
<div>            print("Adresse IP:" + IPAddr)</div>
<div><br>
</div>
          <br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Je ne sais pas si l'import socket est utile ou s’il est intégré nativement.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
bonne journée.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> WAPT <wapt-bounces@lists.tranquil.it> de la part de COOLS Thierry <t.cools@bruxellesformation.brussels><br>
<b>Envoyé :</b> vendredi 3 septembre 2021 10:43<br>
<b>À :</b> wapt@lists.tranquil.it <wapt@lists.tranquil.it><br>
<b>Objet :</b> [Wapt] connaitre l'adresse IP du poste client?</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bonjour,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
quelqu'un sait-il comment lire l'ip du poste client dans un paquet wapt ?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
merci.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div style="color:rgb(0,0,0)"><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:11px">Thierry </span></font></div>
<div style="color:rgb(0,0,0)"><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:11px">Bruxelles Formation</span></font></div>
<div style="color:rgb(0,0,0)"><font face="Verdana, Geneva, Arial, Helvetica, sans-serif"><span style="font-size:11px"><br>
</span></font><br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>