Python CGI script to display client's IP address
1 2 import cgi 3 import os 4 5 print "Content-type: text/html" 6 print "" 7 8 print cgi.escape(os.environ["REMOTE_ADDR"])
DZone Snippets > madphilosopher > cgi
12730 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Darren Paul Griffith http://madphilosopher.ca/
1 2 import cgi 3 import os 4 5 print "Content-type: text/html" 6 print "" 7 8 print cgi.escape(os.environ["REMOTE_ADDR"])