<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: tcpip code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 18 May 2008 08:06:14 GMT</pubDate>
    <description>DZone Snippets: tcpip code</description>
    <item>
      <title>Python CGI script to display client's IP address</title>
      <link>http://snippets.dzone.com/posts/show/1840</link>
      <description>When run as a cgi script, this will print the client's IP address.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;import cgi&lt;br /&gt;import os&lt;br /&gt;&lt;br /&gt;print "Content-type: text/html"&lt;br /&gt;print ""&lt;br /&gt;&lt;br /&gt;print cgi.escape(os.environ["REMOTE_ADDR"])&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 04 Apr 2006 19:54:21 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1840</guid>
      <author>madphilosopher (Darren Paul Griffith)</author>
    </item>
  </channel>
</rss>
