Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Python CGI Script To Display Client's IP Address

DZone 's Guide to

Python CGI Script To Display Client's IP Address

· Java Zone ·
Free Resource

import cgi
import os

print "Content-type: text/html"
print ""

print cgi.escape(os.environ["REMOTE_ADDR"])


Topics:
python

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}