DEV Community

Mayron Ceccon
Mayron Ceccon

Posted on

It's possible changed hosts of linux with Python?

Top comments (1)

Collapse
 
rhymes profile image
rhymes

You can try using sethostname in the socket module: docs.python.org/3/library/socket.html