2

Is there some application (with GUI) that enables me to temporarily block access to some remote machine?

My code accesses a remote folder, and I'd like to simulate disconnection of couple of seconds to that server.

I don't want to play with shared folder on the remote or start playing with my machine network configuration which is more complicated.

kapa
  • 77,694
  • 21
  • 158
  • 175
user1025852
  • 2,684
  • 11
  • 36
  • 58

1 Answers1

0

You could modify your hosts file to point this name to nonexistent IP.

It's here: C:\Windows\System32\drivers\etc\hosts

kapa
  • 77,694
  • 21
  • 158
  • 175
Andrey Marchuk
  • 13,301
  • 2
  • 36
  • 52
  • Manipulating hosts does not simulate a disconnection. Merely alter the DNS and chances are that the already connected sockets won't even notice. – Oct Sep 26 '12 at 08:31