netcat: run a small web server

 

 Server  nano index.html  Create a index.html file
 Server  printf ‘HTTP/1.1 200 OK\n\n%s’ “$(cat index.html)” | netcat -l 8888  Run a simple web server
 Server  nc -lv 80  Listen on port 80
 Client  nc 192.168.22.88 80  Connection test

Leave a Reply

Your email address will not be published. Required fields are marked *