I need client IP address using python. I have tried below code but its not working in server: from socket import gethostname, gethostbyname ip = gethostbyname(gethostname()) print ip On the server, I get '127.0.0.1' every time. Is there any way to find IP address of the client? Continue reading...