I have a web development server running on my Windows 7 machine. I'm working on a feature where the page brings up a warning message should the user's connection with the internet go away.
Thus far, it seems to be working; when I kill the server, the page behaves appropriately. However, I'd like to see what happens if the connection is severed temporarily but the server is still running. Bouncing the server forces the user to log back in; I want to know if they can proceed as expected should the connection cut out intermittently.
Unfortunately, I don't know how to achieve this. Blocking localhost:8080 on the Windows firewall doesn't do any good, as it doesn't process localhost. Is there anything else I could do to simulate a network outage, other than go through the bother of actually running this on another computer?