Just doing a basic forum with a python file allowing the user to login and/or create an account. Thought I would do a little bit more and have each user logged in with thei
I think this might work
from socket import gethostname, gethostbyname ip = gethostbyname(gethostname())
or If you are using CGI you can get it from the REMOTE_ADDR environmental variable
REMOTE_ADDR