import http.server import socketserver PORT = 1234 class Server(socketserver.TCPServer): allow_reuse_address = True with Server(('0.0.0.0', PORT), http.server.SimpleHTTPRequestHandler) as httpd: print(f'Arrow Puzzle server on http://0.0.0.0:{PORT}') httpd.serve_forever()