Over a million developers have joined DZone.

Python CGI Script To Display Client's IP Address

· Java Zone

Discover how powerful static code analysis and ergonomic design make development not only productive but also an enjoyable experience, brought to you in partnership with JetBrains


import cgi
import os

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

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


Learn more about Kotlin, a new programming language designed to solve problems that software developers face every day brought to you in partnership with JetBrains.

Topics:
python

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

{{ parent.tldr }}

{{ parent.urlSource.name }}