Python sockets IP bekommen?


01.08.2023, 09:06

Ergänzung:

Code gibt den Fehler "AttributeError: module 'sockets' has no attribute 'gethostname'"

1 Antwort

Das socket-Modul ist Teil der Standardbibliothek von Python.

https://docs.python.org/3/library/socket.html#socket.gethostname

Du hast dir via pip eine gleichnamige Bibliothek gezogen.

Fabian261110 
Fragesteller
 02.08.2023, 08:08

Habe ich selber herausgefunden, trotzdem Danke!

0