There is a local network, it has a server on Windows (a regular computer). On this server there is a script (in the form of exe - cxfreeze ).

Is there any mechanism in python with which you can find out from which computer in the local network a script was run?

    1 answer 1

    import socket print socket.gethostname() # host name print socket.gethostbyname(socket.gethostname()) # IPv4 import getpass print getpass.getuser() # user name