I am trying to capture the IP Address and the System Name of the current Login user during the login Process. I Use following code for the same:
import socket
system = socket.gethostname()
IPAddr = socket.gethostbyname(system)
It works fine in Local Server but when I push to Server it takes the server name and server IP instead of user IP.