$ cat > index.http << EOF
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Server: netcat!
<!doctype html>
<html>
<body>
<h1>A webpage served by netcat</h1>
</body>
</html>
EOF
$ while :; do cat index.http | nc -l 8000; done
$ python3 -m http.server <port> --bind <ip_address>