Skip to content

Instantly share code, notes, and snippets.

@tzengerink
Last active August 29, 2015 14:08
Show Gist options
  • Save tzengerink/e1f027e7e96bd5fdde33 to your computer and use it in GitHub Desktop.
Save tzengerink/e1f027e7e96bd5fdde33 to your computer and use it in GitHub Desktop.
Minimal Flask Application
from flask import Flask, request
app = Flask(__name__)
@app.route('/')
def ip():
return request.environ['REMOTE_ADDR'] + '\n'
if __name__ == '__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment