2 questions
0
votes
1
answer
3k
views
How do I make a Python server public?
Using this code:
from http import server
class Serv(server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
server.HTTPServer(('host', 80), Serv).serve_forever()
I have ...
0
votes
1
answer
90
views
How to get client's usernames or IDs instead of IP addresses in logs while running a built in python library http.server in unix server?
I am using below command to create a simple http server so that end users can download files on the unix server directly using the URL. But this is kinda risky and i need to implement a user ...