Python CGI script to display client's IP address
import cgi import os print "Content-type: text/html" print "" print cgi.escape(os.environ["REMOTE_ADDR"])
11305 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
import cgi import os print "Content-type: text/html" print "" print cgi.escape(os.environ["REMOTE_ADDR"])
# ifconfig en1 inet 192.168.1.130 netmask 255.255.255.255 alias
# ifconfig en1 inet 192.168.64.25 netmask 255.255.255.0 alias
192.168.1.150 myapp
$ cd devel/myapp $ ./script/server -b myapp -p 80