from socketify import App
def home(res, req):
res.write('
')
res.write('Your proxied IP is: %s' % res.get_proxied_remote_address())
res.write('
')
res.write('Your IP as seen by the origin server is: %s' % res.get_remote_address())
res.end('
')
app = App()
app.get("/*", home)
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run()