class LogPage(webapp.RequestHandler):

    def get(self):
        logs = Log.all()
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Ip addresses: ')
for log in logs:
    self.response.out.write(log.ip_address + ',')
application = webapp.WSGIApplication([('/', MainPage), ('/logs', LogPage)],
    debug=True)

def main():
    run_wsgi_app(application)
if __name__ == '__main__':
    main()
Get IP address in Google App Engine + Python