If i use netcat to listen to a port like so:
nc -l 5555, I can then go to
localhost:5555 in my web browser and netcat will print the request. However, if I click refresh in my browser, netcat stops working. What is causing this?
I've found that specifying
-k forces netcat to listen after the current connection completes, but I'm wondering what makes it close by default.