import http.server import socketserver import socket # port u want here PORT = 8080 # now you can put whatever u want here html_content = """ itsnotskeletons epik site

welcom 2 my epic site made in python

sub 2 itsnotskeletonofficial on youtube ok bye

itsnotskeleton is sigma

""" # get the local ip address (not your actual ip) /where your site will be at local_ip = socket.gethostbyname(socket.gethostname()) # now just ignore this part and run the code class SimpleHTTPRequestHandler(http.server.BaseHTTPRequestHandler): def do_GET(self): if self.path == '/': # Send the HTML content as a response self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() self.wfile.write(html_content.encode('utf-8')) else: # serves a 404 self.send_response(404) self.end_headers() # start ur site Handler = SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), Handler) as httpd: print(f"Serving on http://{local_ip}:{PORT}") httpd.serve_forever()