Aus dem Quelltext:
Code: Alles auswählen
(...)
36 self._port = params.get('port', 2342) # = port aus telex.json
(...)
72 self.SERVER.bind(('', self._port)) # Server lauscht auf diesem lokalen port
###############
325 def test_connection(self):
326 """
327 Test if we can connect to ourselves. That's as much as we can do to
328 check our external reachability. Nonstandard LAN routing setups may
329 cause this to fail though, even if we're reachable externally.
(...)
337 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
338 s.settimeout(3.0)
339 s.connect((self.ip_address, self._port))
###############
356 def update_tns_record(self):
(...)
382 port = self._port.to_bytes(length=2, byteorder="little")
(...)
Aber vielleicht bin ich auch nur zu blöd den Quältext richtig zu lesen...
Edit: Detlef war schneller ....